Skip to content
# EXCEL FUNCTION – SUBSTITUTE

# Excel Function SUBSTITUTE

**Syntax:**

**Syntax Description:**

##### Example 1: Substitute Year “2018” with Year “2019”

**Explanation:**

**– Example 2: Substitute Year “2018” with Year “2019” but only “Second occurrence”**

**Explanation:**

**Things to Remember:**

## Recommended Articles

### Secrets of Excel Data Visualization: Beginners to Advanced Course

### Excel VBA Course : Beginners to Advanced

### Use Automated Excel Utility Tools to increase productivity

Hope you are enjoying learning Excel with us, if you want any support related to this article, please do comment else you can ask questions in Excel Community

## Similar Posts

### EXCEL FUNCTION – INDIRECT

### EXCEL FUNCTION – AVERAGEIF

### VBA Code to Remove Duplicate Rows

### EXCEL FUNCTION – HOUR, MINUTE, SECOND

### EXCEL LARGE FUNCTION

### EXCEL FUNCTION – ISBLANK

=SUBSTITUTE(text,old_text,new_text,[instance_num])

**Text** argument [Required] is used to give the cell reference in which value to be searched

**old_text** argument [Required], is used to give the specific text or cell reference, to be substituted

**new_text** argument [Required], is used to give the specific text or cell reference that you want to substitute in old_text

**instance_num** argument [Optional], is used to give the occurrence number that you want to substitute

Here we have an example, where “Column A” has various values and are required to substitute year “2018” with “2019”. Output of the function returns value in ”Column B” and explanation is also provided.

We will be following SUBSTITUTE function as follows:

**– text** argument value “A2” shows the cell reference in which “2018” is to be searched

**– old_text** argument value “2018” shows that “2018” should be replaced in “A2” cell

**– new_text** argument value “2019” shows the substituted value

– Value in cell “B2” shows that “2018” in cell “A2” is substituted with “2019”

– Value in cell “B4” shows that cell “A2” did not have “2018” that is why text is not substituted and function returns original value of cell “A2” as output

Here we have another example, where “2018” should be replaced with “2019” but ONLY SECOND OCCCURRENCE. Output of the function returns value in ”Column B” and explanation is also provided.

We will be following SUBSTITUTE function as follows:

**– text** argument value “A2” shows the cell reference from which “2018” is to be searched

**– old_text** argument value “2018” shows that “2018” should be searched in “A2” cell

**– new_text** argument value “2019” shows the substituted value

**– instance_num** argument value “2” shows only 2nd occurrence to be substituted and there should no impact on other values.

– Value in cell “B2” shows that “2018” in cell “A2” is substituted with “2019” but only 2nd occurrence and there is no impact on

– Spaces available in a string is counted as characters

-Value in **instance_num** argument should NOT be negative

– If value in **old_text** argument is not searched in text argument cell, function will return value of text argument cell

– If cell reference or parameters are not correctly provided in the function, then it will give output as “#VALUE!” (Error).

– Function should give output in “General” format, however if output is not as per the desired format then we need to change the cell format to “GENERAL”.

Hope you learnt this Function,

Don’t forget to leave your valuable comments!

If you liked this article and want to learn more similar tricks, please Subscribe us or follow us on Social Media by clicking below buttons:

Here is another best rated Excel Charts and Graph Course from ExcelSirJi. This courses also includes On Demand Videos, Practice Assignments, Q&A Support from our Experts.

This Course will enable you to become Excel Data Visualization Expert as it consists many charts preparation method which you will not find over the internet.

So Enroll now to become expert in Excel Data Visualization. Click here to Enroll.

We are offering Excel VBA Course for Beginners to Experts at discounted prices. The courses includes On Demand Videos, Practice Assignments, Q&A Support from our Experts. Also after successfully completion of the certification, will share the success with Certificate of Completion

This course is going to help you to excel your skills in Excel VBA with our real time case studies.

Lets get connected and start learning now. Click here to Enroll.

- Quickly Move or Delete Files or Folder >> Click here
- Handle Duplicate Files with Automated Utlity >> Click here
- Generate Dummy Data For Testing >> Click here
- Excel Files and Sheets Consolidator >> Click here
- Manage Outlook Emails efficiently >> CLick here
- Send Bulk Emails wiht our Excel Automation >> Click here

INDIRECT function is used to convert the text/string into cell reference. Function provides output as the value of that cell reference.

AVERAGEIF function is used to get the “average” of values for matching criteria across range. Average = Sum of all values / number of items.

Working with huge data is always exciting and challenging. From 2007 version onward, Excel is supporting more than a million rows in each worksheet. One of the common problems with huge data is “Duplicates” and the bigger problem is to identify and remove these duplicates. In this article, we will be sharing 4 ways to delete duplicate records from your data.

Microsoft Excel “HOUR, MINUTE, SECOND Functions” are time related functions helps to extract the Hour, Minute or Second from a complete Time.

LARGE function is used to get the Largest k-th value from the range.

LARGE Function has two required arguments i.e. array, and k

Microsoft Excel “ISBLANK Function” is a Logical Function and it is used to check if cell in question is “BLANK OR NON-BLANK”. “ISBLANK Function” is used as a test to validate if cell contains any…