Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

#### Post your problem and you’ll get Expert help in seconds.

Your message must be at least 40 characters
Our professional Expert are available now. Your privacy is guaranteed.

# Excel REPLACE Function

Excel has some very effective ways to fix errors on spreadsheets. The REPLACE function in  Excel can replace text with new ones. It replaces characters with given location from a string with new text. In this tutorial, we will learn how the REPLACE function works in Excel.

Figure 1. Example of How to Use the Replace Function

## Syntax

`=REPLACE (current_text, start_number, number_chars, new_text)`

## Arguments

The REPLACE function uses four arguments. All of them are required for the function to work.

• current_text – It is the text which we want to replace
• start_number – It represents the position of the first character of the text we want to change.
• number_chars – The number or characters we want to replace.
• new_text – This is the text we want to replace the previous one with.

## Process

The REPLACE function alters a text with another one. We can replace the old text with a new one. All we need to do is input the arguments in the function. There are some important things to look out while working with this function. We need to provide the number of characters in the formula which need to be in a numeric form. Otherwise, it will show #VALUE! Error.

## Setting up Data

The following example uses a student information database. Column A, B and C has the name, id and ages.

Figure 2. The Sample Data Set

In order to change the id handles using the REPLACE function, we need to

• Select cell D2 with the mouse.
• Write the function `=REPLACE(B2,3,5,"DF")` in the formula bar of D2.
• Press Enter.

Figure 3. Applying the Formula

• Select and drag the function from cells D2 to D6.

This will change show the new ids in column D.

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

### Did this post not answer your question? Get a solution from connecting with the expert.

Solution examples
I need a formula that has these 2 rules. If letter was rec'd between 1st and 15th = 1st of the month following letter rec'd date. If letter was rec'd between 16thst and end of the month= 1st of the 2nd month following letter rec'd date.
Solved by V. F. in 20 mins
I need a column to total (Hours)(85) + (Travel)(.55) per line
Solved by F. Q. in 20 mins
Trying to figure out what is wrong with my formula in Oct-ZD tab in column AY and BG.
Solved by O. Q. in 8 mins
So I have used vlookup to find the price of a product on a different sheet and then I have tried to times that by a quantity. e.g. =vlookup(d4,table35,2,false)*e4 This is the formula I typed in which worked for another list I did but for some reason it's not working now even though everything is practically the same, apart from the contents. Could you help?
Solved by B. U. in 60 mins
I have a column containing date and time data together and i need to isolate the time data. When I tried to use text to column, it changed all the times to AM. There is an extremely large amount of data - over 550,000 rows so manually changing it won't work. The file is too large to attach.
Solved by S. E. in 40 mins