• ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
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
44
292 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
  • 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
  • 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
  • Avast SecureLine VPN 2021 2 Years 5 Devices Global Avast SecureLine VPN 2021 2 Years 5 Devices Global
    Rated 5.00 out of 5
    $47.00
  • Windows 11 Pro Product Activation Key Windows 11 Pro Product Activation Key
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 10 Devices 1 Year Global AVG Internet Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $30.00
Products
  • Windows Server 2016 Essentials Key Global Windows Server 2016 Essentials Key Global
    Rated 4.79 out of 5
    $10.00
  • Microsoft Visio Professional 2016 Key 1PC Microsoft Visio Professional 2016 Key 1PC $9.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
  • Microsoft Project Standard 2019 - 1 PC Microsoft Project Standard 2019 - 1 PC $12.00
  • Microsoft Visio Standard 2021 Key 1PC Microsoft Visio Standard 2021 Key 1PC $13.00
  • Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 4.72 out of 5
    $20.00
  • Windows 10 Pro Key Global Genuine Key Windows 10 Pro Key Global Genuine Key
    Rated 4.78 out of 5
    $6.00
  • Windows Server2008 R2 Remote Desktop Services user connections (20)cal Windows Server2008 R2 Remote Desktop Services user connections (20)cal $29.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 Server 2012 R2 Standard Key Global Windows Server 2012 R2 Standard Key Global
    Rated 4.78 out of 5
    $15.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.