# Google Sheets SUBSTITUTE Function: Syntax, Examples & Tips

- URL: https://betteranalyst.com/google-sheets/substitute-function
- Author: Better Analyst

Formula Bot is now Better Analyst—same account, more powerful analysis.Formula Bot is now Better Analyst—same account and workflows, with more powerful analysis, dashboards, and automation.

[Learn what changed](https://betteranalyst.com/formula-bot-is-now-better-analyst)

The SUBSTITUTE function replaces specific text within a string with new text, allowing for easy text modification in cells.

```
SUBSTITUTE(text_to_search, search_for, replace_with, [occurrence_number])
```

Generate FormulaExplain Formula

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Describe the SUBSTITUTE you need in plain EnglishGenerate Formula

## Parameters

**`text_to_search`**:\
The text or cell reference that contains the text you want to search within.

**`search_for`**:\
The text that you want to find and replace within the `text_to_search`.

**`replace_with`**:\
The text that you want to use as a replacement for the `search_for` text.

**`occurrence_number`**:\
(Optional) Specifies which occurrence of the `search_for` text you want to replace. If omitted, all occurrences will be replaced.

## What is a SUBSTITUTE Function?

The *SUBSTITUTE* function in Google Sheets is a useful tool that allows you to replace existing text within a string with new text. This function is particularly handy when you need to make specific changes to text data without altering the entire string. Unlike other text functions, SUBSTITUTE can replace all instances of a specified substring or just a specific occurrence, giving you flexibility in how you manipulate your text.

In simpler terms, SUBSTITUTE helps you modify text by swapping out certain words or characters for others in a straightforward way.

## A Practical Example

Imagine you are managing a list of customer feedback and you want to standardize the feedback by replacing a specific term:

### Feedback Table:

| CustomerID | Feedback |
| - | - |
| 1 | The product is great! |
| 2 | Great service and support! |
| 3 | The product is not great. |

You want to replace the word "great" with "excellent" to enhance the feedback consistency.

## SUBSTITUTE Formula

To achieve this, you would use the SUBSTITUTE function as follows:

```
=SUBSTITUTE(B2, "great", "excellent")
```

In this formula:

- `B2` is the cell containing the feedback text.
- `"great"` is the text you want to replace.
- `"excellent"` is the new text that will replace the old text.

## Result of the Formula

When you apply the SUBSTITUTE formula to the Feedback Table, the output would look like this:

| CustomerID | Feedback | Updated Feedback |
| - | - | - |
| 1 | The product is great! | The product is excellent! |
| 2 | Great service and support! | Excellent service and support! |
| 3 | The product is not great. | The product is not excellent. |

In this case, the SUBSTITUTE function has replaced all instances of "great" with "excellent" in the feedback text.

## Why Use SUBSTITUTE?

SUBSTITUTE is beneficial because it simplifies the process of modifying text data in Google Sheets. It allows for precise changes without the need for complex formulas or manual edits. Additionally, it can be used in combination with other text functions to create more advanced text manipulation scenarios.

## Key Takeaways:

- **SUBSTITUTE**: A powerful text function that replaces specified text within a string.
- **Flexibility**: Can replace all instances or a specific occurrence of the text.
- **Efficiency**: Saves time by automating text modifications in your data.
- **Common Use Cases**: Ideal for standardizing text, correcting typos, or updating terminology in datasets.

SUBSTITUTE is an essential function for anyone working with text data in Google Sheets, providing a straightforward way to enhance data quality and consistency.

Happy spreadsheeting!

## Example use case

You have a list of product descriptions in Column A that contain outdated terms. You can use the SUBSTITUTE formula to replace those terms with updated ones, ensuring all descriptions are current and consistent without manually editing each entry.

## Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

[Create Free Account](https://betteranalyst.com/signup)[Try Formula Generator](https://betteranalyst.com/excel-ai)

## Google Sheets how-to guides

- [How To Make A Histogram In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-histogram-in-google-sheets)
- [How To Make A Line Graph In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-line-graph-in-google-sheets)
- [How To Make A Pie Chart In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-pie-chart-in-google-sheets)
- [How To Make A Table In Google Sheets](https://betteranalyst.com/google-sheets/how-to-make-a-table-in-google-sheets)
- [How To Merge Cells In Google Sheets](https://betteranalyst.com/google-sheets/how-to-merge-cells-in-google-sheets)
- [How To Multiply In Google Sheets](https://betteranalyst.com/google-sheets/how-to-multiply-in-google-sheets)
- [How To Password Protect An Google Sheets File](https://betteranalyst.com/google-sheets/how-to-password-protect-an-google-sheets-file)
- [How To Remove Blank Rows In Google Sheets](https://betteranalyst.com/google-sheets/how-to-remove-blank-rows-in-google-sheets)

## Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

## Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

1. [01ChatGPTOpen a balanced comparison prompt in ChatGPT.](https://chatgpt.com/?prompt=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
2. [02ClaudeOpen the same research prompt in Claude.](https://claude.ai/new?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)
3. [03PerplexityResearch the comparison with linked web sources.](https://www.perplexity.ai/search?q=Compare%20Better%20Analyst%20with%20using%20a%20general-purpose%20AI%20assistant%20for%20data%20analysis.%20Evaluate%20spreadsheet%20and%20document%20analysis%2C%20dashboards%2C%20repeatable%20reports%2C%20code%20transparency%2C%20data%20connections%2C%20pricing%2C%20and%20limitations.%20Use%20current%20public%20sources%2C%20distinguish%20verified%20facts%20from%20assumptions%2C%20and%20explain%20which%20types%20of%20users%20each%20option%20fits%20best.)

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.
