REPLACE function in Excel

Excel TEXT functions return a number in a specified number format

Remove text by variable position in a cell in Excel

To remove text from a cell when the text is at a variable position, you can use a formula based on the REPLACE function, with help from the FIND function. Formula =REPLACE(text,start,FIND(marker,text)+1,””) Explanation In the example shown, the formula in C6 is: =REPLACE(B6,1,FIND(“:”,B6)+1,””) How this formula works The REPLACE function will replace text by position…. read more »

Remove text by position in a cell in Excel

To remove text from a cell by position, you can use the REPLACE function. Formula =REPLACE(text,start,characters,””) Explanation In the example shown, the formula in C6 is: =REPLACE(B6,1,24,””) How this formula works The replace function lets you replace text based on its location and length. In this case, we want to strip off the drive and… read more »

Remove first character in a cell in Excel

To remove the first character in a cell, you can use the REPLACE function. Formula =REPLACE(A1,1,N,””) Explanation In the example shown, the formula in D5 is: =REPLACE(A1,1,1,””) How this formula works This formula uses the REPLACE function to replace the first character in a cell with an empty string (“”). The arguments for REPLACE are… read more »

SUBSTITUTE function vs REPLACE function in Excel

This example shows the difference between the SUBSTITUTE function and the REPLACE function. 1a. If you know the text to be replaced, use the SUBSTITUTE function. 1b. The SUBSTITUTE function has a 4th optional argument. You can use this argument to indicate which occurrence you want to substitute. 2. If you know the position of the text to… read more »

Sidebar