Replace Part of a Text String

BeginnerText Manipulation

I need to change all instances of 'OldCompany' to 'NewCompany' in a column.

The Formula

=SUBSTITUTE(A1, "OldCompany", "NewCompany")

How It Works

1

SUBSTITUTE searches for specific text and replaces it with new text.

2

It is case-sensitive.

💡 Pro Tips

  • • Test the formula with sample data before applying to your entire dataset
  • • Use absolute references ($A$1) when copying formulas to prevent reference errors
  • • Consider error handling with IFERROR() for more robust formulas
  • • Document your formulas with comments for future reference

Need a Custom Formula?

Can't find exactly what you need? Our AI can generate custom Excel formulas based on your specific requirements.

Try AI Generator

Formula Details

Difficulty:Beginner
Category:Text Manipulation
Steps:2