REPLACE function - Zoho Sheet - Help Guide

REPLACE

Replaces part of a text string with another given text string.

 

Syntax

 

REPLACE(original_text; start_position; length; new_text)

original_text: The text, part of which you want to replace. E.g. "Mick Foyd"

start_position: The position where the replacement should begin. E.g. 6

length: Length of the text to replace. E.g. 4

new_text: The text you want to insert into the original_text. E.g. "Floyd"

 

Remarks

  • Alternatively, you can also use the Replace option under the Insert menu.


Examples

 

Formula

Result

=REPLACE("Mick Foyd";6;4;"Floyd")

Mick Floyd

=REPLACE("abc2mail.com";4;1;"@")

abc@mail.com

=REPLACE(2020;4;1;1)

2021


Get a hands-on experience of the function in the embedded range below.   



Possible Errors

 

Errors

Meaning

#N/A!

  • The function could not find the value it was asked to look for. Commonly occurs in VLOOKUP and similar functions.

#NAME!

  • The function name is incorrect or invalid.

  • The given defined name (if any) is invalid.

  • There is a typo in the defined name used in the function.

  • Double quotes are missing for text values in the function.

  • Colon missing in a cell range reference.

#VALUE!

  • The given argument's data type is incorrect or invalid.
    For example, the function =DATE(A1:A3) will return a #VALUE error when a text value is present in the range.

  • The value of start_position or length is less than 0.

#REF!

  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.

 

Similar Functions