• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer
EDUCBA

EDUCBA

MENUMENU
  • Resources
        • Excel Charts

          • Histogram Chart Excel
          • Basic Excel Formulas
          • Text to Columns in Excel
        • Excel Charts
        • Excel Tips

          • Excel Gantt Chart
          • IFERROR with VLOOKUP
          • Data Table in Excel
        • Excel Tips
        • Excel Tools in Excel

          • Stacked Column Chart
          • Cheat Sheet of Excel Formulas
          • Excel Data Validation
        • Histogram chart in excel
        • Others

          • Resources (A-Z)
          • Excel Functions
          • Financial Functions in Excel
          • Logical Functions in Excel
          • Lookup Reference Functions in Excel
          • Maths Function in Excel
          • TEXT and String Functions in Excel
          • View All
  • Free Courses
  • All Courses
        • Certification Courses

          Excel Course 1
        • All in One Bundle

          All-in-One-Excel-VBA-Bundle
        • Excel course

          Excel-Training
        • Others

          • Excel advanced course
          • VBA Course
          • Excel Data Analysis Course
          • Excel for Marketing Course
          • Excel for Finance Course
          • View All
  • 120+ Courses All in One Bundle
  • Login

REPLACE Formula in Excel

Home » Excel » Blog » Excel Tips » REPLACE Formula in Excel

replace formula in excel

REPLACE Formula in Excel (Table of Content)

  • Introduction to REPLACE Formula in Excel
  • How to Use REPLACE Formula in Excel?

Introduction to REPLACE Formula in Excel

Normally while working with Excel we may use the wrong word and want to replace with the correct word or sometimes similar pattern data like a month, year, etc. need to update with the new data.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

Eg: Where ever Jan is available need to replace with Feb.

Definition

The function that helps us to replace the old text with new text without erasing the existing text is called the REPLACE Function. The text may be a single character of a set of characters. In this article, we will discuss Replace Formula in excel.

Replace can be performed in Two Ways:

1. With the help of Find and Replace.

2. With the use of Replace Function.

If we press Ctrl + F we will get the below pop up.

REPLACE formula 1

In “Find what” we need to give the existing text and “Replace with” we need to give the new text. We can replace in one single cell or all the selected cells in a single click.

Replacement Using REPLACE Function

Another way of replacing is by using the “Replace” function. Replace is a worksheet function that can be used in VBA too.

Popular Course in this category
Cyber Week Sale
Excel Training (18 Courses, 9+ Projects) 18 Online Courses | 9 Hands-on Projects | 95+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.9 (2,645 ratings)
Course Price

View Course

Related Courses
Excel Data Analysis Training (12 Courses, 6+ Projects)Excel for Finance Training (15 Courses, 5+ Projects)

Syntax

REPLACE formula syntax

Before going to see a few examples of REPLACE function first we will understand the 4 arguments that should input while using the REPLACE function.

Argument in REPLACE Formula

Old_text: This argument represents the existing old text.

Start_num: This argument represents the starting character number from where we want to replace.

Num_chars : This argument represents the number of characters we want to replace.

New_text: This argument represents the new text which we want to replace in place of old existing text.

How to Use Excel REPLACE Formula in Excel?

Excel REPLACE Formula is very simple and easy. Let’s understand how to use the Excel REPLACE Formula with few examples.

You can download this REPLACE Formula Excel Template here – REPLACE Formula Excel Template

Example #1 – Replace the Text or String

Consider a text string like below.

replace formula example 1-1

Now we need to replace June with May by using the REPLACE function. Follow the below steps to REPLACE.

First, select the cell where we want to place the revised text and start the formula then select the cell which has old data. Here A2 is the cell address of existing or old data hence we selected cell A2.

replace formula example 1-2

We need to give the start number from which character we want to replace. Here we want to replace from E which is in position number 9. So, give comma after A2 and input 9.

replace formula example 1-3

How many characters we want to replace. Here “June” occupies 4 characters which we want to replace with new text. Input 4 in num_chars position.

replace formula example 1-4

Last step is for new text. Input the new text in double quotes as shown in the below picture.

replace formula example 1-5

Press Enter Key.

replace formula example 1-6

Example #2  – Replace Date with the help of REPLACE Formula

Now we will apply the Replace function to replace a month in date format. Consider a date in the below format.

replace formula example 2-1

Now we want to replace 2019 with 2020 using REPLACE. Apply the formula as we already applied earlier.

replace formula example 2-2

But, we got some strange results here. Why? Because the date will save in number format hence it added 2020 to that number. What is the solution then?

First, we need to convert date into text format using TEXT function and the format is “dd-mmm-yyyy” then we will replace 2019 with 2020.

In “Old text” use the TEXT function to convert the date into the required date format as below.

replace formula example 2-3

With the above step, we converted the date in the cell G11 into text format “dd-mmm-yyy” and now we can input the rest of the arguments as usual.

We want to replace 2019 with 2020 hence input 8 in “start_numb” as the 2 is in the 8th position of the string.

replace formula example 2-4

Input the number of characters as 4 because “2019” occupies 4 characters.

replace formula example 2-5

Finally, input the new text “2020” in double quotes.

replace formula example 2-6

Press Enter Key.

replace formula example 2-7

Example #3 – Insert Characters and NESTED REPLACE

In this example, we will see how to input additional characters or symbol without replacing any text and will see how to use multiple replace conditions.

Consider a string “son-in-law” without a symbol “-“ as below.

replace example 3-1

As usual, start the formula REPLACE but don’t select the cell address immediately instead of that input REPLACE function one more time as below.

replace example 3-2

Select the cell address.

replace example 3-3

In start number input 4 because we need hyphen character in the fourth position.

replace example 3-4

Input zero in place of the number of characters as we do not want to replace any characters here.

replace example 3-5

Input Hyphen Symbol (-) in place of new text with double quotes.

replace example 3-6

With this we able to input the first hyphen symbol between “son” and “in” and the result of this replace function will be input for the outer replace function.

Again, input the start number as 7, number of characters as 0 and new text as hyphen as below.

replace example 3-7

The result will be as below.

replace example 3-8

In the above example, we did not remove any characters from the existing or old text but added an additional symbol to it. Not only symbols, but we can also add the characters. Here we used two REPLACE functions however we can add multiple REPLACE functions as per our requirement.

Things to Remember About REPLACE Formula in Excel

  • It is used to replace the old text with new text when we know the position of the text.
  • If you do not know the position of old text, then better to avoid using it or use with the combination of FIND function. In start_num position use FIND function.
  • If you do not want to remove any character input zero in the number of characters.
  • While working with Dates ensure you convert into text later replace with the required text. If the result requires in Date format, not in text format, then input DATEVALUE function to the result of REPLACE function.

Recommended Articles

This has been a guide to REPLACE Formula in Excel. Here we discussed How to use REPLACE Formula in Excel along with practical examples and downloadable excel template. You can also go through our other suggested articles –

  1. COLUMNS Formula in Excel
  2. WEEKDAY Formula in Excel
  3. Grouping Columns in Excel
  4. How to Use Excel IRR Formula?

All in One Excel VBA Bundle (120+ Courses, 30+ Projects)

120+ Online Courses

30+ Projects

500+ Hours

Verifiable Certificates

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Reader Interactions
Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar
Excel Functions Tutorials
  • Excel Tips
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (10+)
  • Excel Tools (97+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (12+)
  • Lookup Reference Functions in Excel (30+)
  • Maths Function in Excel (39+)
  • TEXT and String Functions in Excel (25+)
  • Date and Time Function in Excel (20+)
  • Statistical Functions in Excel (55+)
  • Information Functions in Excel (4+)
  • Excel Charts (44+)
  • VBA (180+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (14+)
  • Excel Formula and Functions (20+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course
Footer
About Us
  • Who is EDUCBA?
  • Sign Up
  •  
Free Courses
  • Free Online Excel Course
  • Free Vba Course
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training
Resources
  • Resources (A To Z)
  • Excel Charts
  • Excel Tips
  • Excel Tools in Excel
  • Excel Functions
  • Financial Functions in Excel
  • Logical Functions in Excel
  • Lookup Reference Functions in Excel
  • Maths Function in Excel
  • TEXT and String Functions in Excel
  • Date and Time Function in Excel
  • Statistical Functions in Excel
  • Information Functions in Excel
Apps
  • iPhone & iPad
  • Android
Support
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions

© 2019 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

Download REPLACE Formula Excel Template

By continuing above step, you agree to our Terms of Use and Privacy Policy.
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

Let’s Get Started
Please provide your Email ID
Email ID is incorrect

Cyber Week Offer - All in One Excel VBA Bundle (120+ Courses, 500+ hours of Videos) View More

Cyber Week Offer - Cyber Week Offer - All in One Excel VBA Bundle (120+ Courses, 500+ hours of Videos) View More