• 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
    • 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
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
38
264 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
  • Windows 11 Home Key Global 2021 Windows 11 Home Key Global 2021
    Rated 5.00 out of 5
    $6.00
  • Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years
    Rated 5.00 out of 5
    $47.00
  • Avast Premium Security 2021 10 Devices 1 Year Global Avast Premium Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $28.00
  • Avast Ultimate Suite 2021 3 Years 10 Devices Global Avast Ultimate Suite 2021 3 Years 10 Devices Global
    Rated 5.00 out of 5
    $90.00
Products
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years
    Rated 5.00 out of 5
    $47.00
  • Kaspersky Small Office Security 15 PCs + 15 Mobiles + 2 Servers 1 Year Kaspersky Small Office Security 15 PCs + 15 Mobiles + 2 Servers 1 Year
    Rated 5.00 out of 5
    $201.00
  • AVG Internet Security 2021 1 Device 1 Year Global AVG Internet Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
  • Microsoft Office Home And Business 2016 For Mac Key Global Bind Microsoft Account Microsoft Office Home And Business 2016 For Mac Key Global Bind Microsoft Account
    Rated 4.92 out of 5
    $15.00
  • Windows 10 Education Key Global Windows 10 Education Key Global
    Rated 4.84 out of 5
    $9.00
  • Windows Server 2016 Standard Key Global Windows Server 2016 Standard Key Global
    Rated 4.80 out of 5
    $10.00
  • Project Professional 2013 Microsoft Project Professional 2013 - 1 PC $9.00
  • Windows Server 2016 Datacenter Key Global Windows Server 2016 Datacenter Key Global
    Rated 4.74 out of 5
    $10.00
  • Microsoft Visual Studio 2019 Professional Key Microsoft Visual Studio 2019 Professional Key
    Rated 4.84 out of 5
    $15.00
  • Windows Server 2019 Standard Key Global Windows Server 2019 Standard Key Global
    Rated 4.68 out of 5
    $7.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

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.