Formulas > =REPLACE()

How to Use REPLACE() in Google Sheets

Description

Replaces part of a text string with a different text string.

How To Actually Use REPLACE() in Sheets

REPLACE(text, position, length, new_text)

Try REPLACE yourself

In cell B1, use the REPLACE() function to replace the first 3 characters of the text in cell A1 with 'XYZ'. The result should display 'XYZ' followed by the remaining characters from A1.

Hints (2)

Looking for a video tutorial? Members can email me anytime! Check out the blogs below for more info on this formula. Or generate your formula. Find more formulas here at BetterSheets.co/formulas

Transcript-matched member videos for REPLACE(). Click through to watch.

Watch more tutorials
How to Replace Text with a Blank Cell in Google Sheets

How to Replace Text with a Blank Cell in Google Sheets

Learn the Quick Fix! Replace Text with Blank Cell in Google Sheets Hassl...
Calculate ROAS in Google Sheets

Calculate ROAS in Google Sheets

Calculate Return on Ad Spend with a formula combination. Bonus: create a...
Move Entire Row when a Cell is changed to "Yes" - The $75,000 Google Script

Move Entire Row when a Cell is changed to "Yes" - The $75,000 Google Script

This is one of the most popular asked first "automations". How to move a...
Hardest Formula: SumIF | Addition Based on Dates / Values

Hardest Formula: SumIF | Addition Based on Dates / Values

Demystifying the SumIF Formula. Add up your values based on a condition,...

Learn more about the REPLACE() formula:

Generate a REPLACE() formula for your needs

Describe your task in plain English and get a paste-ready formula that uses REPLACE(). 2 free AI generations, no signup. Members get unlimited use.

Generate a REPLACE() formula