ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Functions > Excel REPLACE Function

Excel REPLACE Function

How to Use the Excel REPLACE Function
Table of contents :
  • What is the Excel REPLACE Function?
  • REPLACE Syntax
  • How to Use REPLACE Function in Excel
  • REPLACE Example

Excel REPLACE Function

What is the Excel REPLACE Function?

The excel REPLACE function replaces the text based on a predetermined position.

Excel has another function to change a text, namely the excel SUBSTITUTE function. What’s the difference between the REPLACE function and the SUBSTITUTE function? Please read the following article:

  • How to Use the Excel SUBSTITUTE Function

REPLACE Syntax

REPLACE(old_text, start_num, num_chars, new_text)

old_text, required, the text in which you want to replace.

start_num, required, the starting position of the character to replace with the new_text.

num_chars, required, the number of characters to replace with the new_text.

Usage notes:

  • If you do not know the position of the character to be changed, use the excel FIND function or excel SEARCH function to find its position.

How to Use REPLACE Function in Excel

The following is an example of the REPLACE function usage and the results.

Excel REPLACE Function

REPLACE Function #1

=REPLACE(A2,B2,C2,D2)

The REPLACE function replaces 2 characters in position 1 with characters “19”. The result is 19-0001

REPLACE Function #2 – REPLACE Function #4

=REPLACE(A3,B3,C3,D3)

=REPLACE(A4,B4,C4,D4)

=REPLACE(A5,B5,C5,D5)

All functions return a #VALUE error. You can’t use negative numbers for the start_num and num_chars arguments. In addition to negative numbers, you can’t use zero number in the start_num argument.

REPLACE Function #5

=REPLACE(A6,B6,C6,D6)

If you use zero number for the num_chars argument the result is like adding new_text to old_text; no characters changed, where the new_text will be added depending on the value of the start_num argument.

REPLACE Function #6

=REPLACE(A7,B7,C7,D7)

If the start_num argument is greater than the text length, new_text will be added to the end of old_text. Regardless of the numbers entered in the num_chars argument, it does not affect the results.

REPLACE Example

Another article using or explain about REPLACE Function

Another Text Function

Another article about Text Function
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
Usefull links
  • Microsoft REPLACE and REPLACEB function documentation
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

Excel LEFT Function
What is the Excel LEFT Function? The excel LEFT function …

Excel LEFT Function

Excel DATE Function
What is the Excel DATE Function? The DATE function returns …

Excel DATE Function

Excel CONCAT Function
What is the Excel CONCAT Function? The excel CONCAT function …

Excel CONCAT Function

Excel TIMEVALUE Function
What is the Excel TIMEVALUE Function? The Excel TIMEVALUE function …

Excel TIMEVALUE Function

Excel TEXTJOIN Function
What is the Excel TEXTJOIN Function? The excel TEXTJOIN function …

Excel TEXTJOIN Function

Tags:Excel Find Replace Formula Excel Formula Replace Text Excel Replace Excel Replace Character Excel Replace Formula with Value Excel Replace Space Excel Replace String Excel Replace Text Find and Replace Function in Excel How to Replace Values in Excel How to Use Replace Function in Excel Replace Formula in Excel Replace Function in Excel Text Functions

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh