=REPLACE(old_text,start_num,num_chars,new_text)
old_text argument is used to give the cell reference of which text should be replaced. We can also give the specific text instead of cell reference.
start_num argument is used to give the location of first character in old_text argument from which replace should start
num_char argument is used to give total number of characters are to be replaced in old_text argument
new_text argument is used to give the replaced value that you want to replace in old_text
Here we have some examples, where “Column A” contains various strings and are required replace first three characters to “MON”. Output of the function returns value in ”Column B” and explanation is also provided.
We will be following REPLACE function as follows:
– old_text argument value “A2” shows the cell reference which text should be replaced
– start_num argument value “1” shows that replace of text should start from 1st character
– num_char argument value “3” shows that total 3 character to be replaced in cell “A2” string
– new_text argument value “MON” shows that first 3 characters are to be replaced with “MON”
– “MONDAY” i.e. Output in Cell “B2” is showing that characters 1 to 3 of FRIDAY (in cell “A2”) is replaced with “MON” and same to other cells.
– Spaces available in a string is counted as characters
– Value in start_num and num_chars arguments should NOT be negative
– Function should give output in “General” format, however if output is not as per the desired format then we need to change the cell format to “GENERAL”.
Hope you learnt this Function,
Don’t forget to leave your valuable comments!
If you liked this article and want to learn more similar tricks, please Subscribe us or follow us on Social Media by clicking below buttons:
“NETWORKDAYS” function is very helpful feature in the Microsoft excel to calculate the working days from a particular period excluding “Saturday and Sundays”. NETWORKDAYS function subtract the Start Day from the End Date provided.
Table of Content Introduction Benefits of Using Outlook and Excel for Work Allocation Setting Up Your Outlook-Based Excel Tool Managing Work Allocation Conclusion Download Free Excel Template Introduction Efficient work allocation is crucial for organizations…
Understand the basic Different between Excel Online vs Excel Desktop. Excel Online is like a simpler version of Excel that you can use in your web browser. It has most of the important features you need, but it doesn’t have advanced things like macros. This article dives into the differences between Excel Online and the excel Desktop version to help you understand what each one is good at and where they fall short.
In this tutorial, we’re going to explore one of the most intriguing features in Excel: the OFFSET function.
So, what is the OFFSET function in Excel? Simply put, OFFSET gives you a reference to a range of cells that’s moved from a starting point by a certain number of rows and columns.
SUMPRODUCT function performs multiplication of numbers within arrays and then sum the values SUMPRODUCT function has array1, 2.. arguments.
FIND function is used to find the position of text, or character in an available string.