• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

Using SUBSTITUTE function to replace text strings in Excel

0 Comments

Using SUBSTITUTE function to replace text strings in Excel: The SUBSTITUTE function in Excel is used to replace old text strings with new ones. Follow the article below to learn more about using the SUBSTITUTE function in Excel.

1. SUBSTITUTE function structure

Function syntax: =SUBSTITUTE(text, old_text, new_text, [instance_num])
Where:

  • Text: a required argument, refers to the text or a reference to a cell containing the text that you want to replace characters in.
  • Old_text: a required argument, is the text that you want to replace.
  • New_text: a required argument, is the text that you want to replace old_text with.
  • Instance_num: an optional argument, specifies the number of times you want to replace old_text with new_text. If you specify instance_num, only that occurrence of old_text is replaced. If you don’t specify instance_num, all occurrences of old_text in the text are replaced with new_text.

2. Using the SUBSTITUTE function

For example, suppose we have the following data table. We need to modify the Item Code according to the requirements below.

Using SUBSTITUTE function to replace text strings in
A. Replace “VT” with “HH”

To replace “VT” with “HH”, we have the formula for the first item code as follows:

=SUBSTITUTE(B2,”VT”,”HH”)

Drag the formula to the remaining cells to get the result:

Using SUBSTITUTE function to replace text strings in Excel

Using SUBSTITUTE function to replace text strings in Excel

B. Replace all 0s in the item code with 9s

To replace all 0s in the item code with 9s, we have the formula for the first item code as follows:

=SUBSTITUTE(B2,0,9)

Drag the formula to the remaining cells to get the result:

Using SUBSTITUTE function to replace text strings in Excel

Using SUBSTITUTE function to replace text strings in Excel

C. Replace the first 0 in the item code with 9

To replace the first 0 in the item code with 9, we have the formula for the first item code as follows:

=SUBSTITUTE(B2,0,9,1)

Drag the formula to the remaining cells to get the result:

Using SUBSTITUTE function to replace text strings in Excel

Using SUBSTITUTE function to replace text strings in Excel

In this way, the article has guided you on how to use the SUBSTITUTE function in Excel. Hope this article will be helpful to you in your work. Wish you success!

Rate this post
31
257 Views
How to Use the TIME Function to Return Time Values in ExcelPrevHow to Use the TIME Function to Return Time Values in ExcelApril 24, 2023
How to find duplicate values in an Excel data arrayApril 24, 2023How to find duplicate values in an Excel data arrayNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Kaspersky Internet Security 2021 1 year 5 devices key Global Kaspersky Internet Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $45.00
  • Windows Server 2022 Datacenter Key Global Windows Server 2022 Datacenter Key Global
    Rated 5.00 out of 5
    $7.00
  • Kaspersky Small Office Security 10 PCs + 10 Mobiles + 1 Server 1 Year Kaspersky Small Office Security 10 PCs + 10 Mobiles + 1 Server 1 Year
    Rated 5.00 out of 5
    $164.50
  • Avast Ultimate Suite 2021 1 Year 10 Devices Global Avast Ultimate Suite 2021 1 Year 10 Devices Global
    Rated 5.00 out of 5
    $54.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
Products
  • Project Professional 2021 Microsoft Project Professional 2021 - 1 PC $13.00
  • Buy Windows Server 2016 Essentials Key Global Buy Windows Server 2016 Essentials Key Global
    Rated 4.75 out of 5
    $10.00
  • Microsoft Office Home And Business 2019 CD Key for MAC Global Microsoft Office Home And Business 2019 CD Key for MAC Global
    Rated 4.95 out of 5
    $30.00
  • Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
  • Buy Office 2021 Professional Plus Key Global For 5 PC Buy Office 2021 Professional Plus Key Global For 5 PC
    Rated 5.00 out of 5
    $68.00
  • Windows Server 2025 Remote Desktop Services 50 User Connections Windows Server 2025 Remote Desktop Services 50 User Connections $25.00
  • Kaspersky Small Office Security 10 PCs + 10 Mobiles + 1 Server 1 Year Kaspersky Small Office Security 10 PCs + 10 Mobiles + 1 Server 1 Year
    Rated 5.00 out of 5
    $164.50
  • Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL
    Rated 5.00 out of 5
    $17.00
  • Microsoft Visio 2019 Professional Key Global Microsoft Visio 2019 Professional Key Global - 5 PC
    Rated 4.93 out of 5
    $19.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

00Hours00Minutes00Seconds
Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.

BESbswyBESbswyBESbswyBESbswyBESbswyBESbswyBESbswyBESbswy