The REPLACE function in Excel replaces part of a text string with a different text string, based on the number of characters or bytes specified. It is categorized as a TEXT function and can be useful for financial analysis to remove text from a cell when the text position is variable. The REPLACE function returns a text string so care must be taken if using it with dates, times, or numbers which may need to be converted to text first.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
25 views
REPLACE Replaces Part of A Text String
The REPLACE function in Excel replaces part of a text string with a different text string, based on the number of characters or bytes specified. It is categorized as a TEXT function and can be useful for financial analysis to remove text from a cell when the text position is variable. The REPLACE function returns a text string so care must be taken if using it with dates, times, or numbers which may need to be converted to text first.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7
REPLACE replaces part of a text
string, based on the number of
characters you specify, with a different text string. REPLACEB replaces part of a text string, based on the number of bytes you specify, with a different text string. [1] The REPLACE Function is categorized under Excel TEXT functions. In financial analysis, the REPLACE function can be useful if we wish to remove text from a cell when the text is in a variable position. A few notes about the REPLACE Function: 1. #VALUE error – Occurs when: a. The given start_num argument is negative or is non-numeric value. b. The given num_chars argument is negative or non- numeric. 2. The REPLACE function is designed for use with text strings and returns a text string. Therefore, if we attempt to use the function with a date, time or a number, we may get odd results. If we’re not planning to use date, time or number in further calculations, we can solve the problem by converting the values into text, using Excel’s Text To Columns tool. To do it: We need to select the cell(s) we want to convert to text. The selected text must not span more than one column. From the Data tab of the Excel ribbon, select the Text to Columns, as shown below: Ensure the Delimited option is selected, then click Next.
Ensure all the delimiter options
are unselected and then click Next again. Select Text and click the Finish button. The REPLACE function should now work as expected on the values that were converted to text.