=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:
Microsoft Excel “ISBLANK Function” is a Logical Function and it is used to check if cell in question is “BLANK OR NON-BLANK”. “ISBLANK Function” is used as a test to validate if cell contains any…
This guide will show you quick and easy methods to find the number of days between dates in Excel.
Do you need to know how many days are between two dates? Maybe you want to find out the days between today and a date in the past or future, or just count the working days between two dates? Whatever you need, one of the examples below will help you find the solution
An ultimate guide for basic user to understand Excel Vlookup function. VLOOKUP is a vertical lookup which helps the user to extract the values from other columns (leftmost) basis on matching column string.
This quick tutorial explains the basics of external references in Excel and shows how to reference another sheet or workbook in your formulas.
The tutorial teaches you the basics of regression analysis and shows a few ways to do linear regression in Excel.
Imagine this: you have a lot of data and need to predict next year’s sales for your company. You’ve found many factors that could affect the sales, maybe even hundreds. But how do you know which ones really matter? You can use regression analysis in Excel. It will help answer this and other questions, like: Which factors are important and which ones don’t matter? How connected are these factors? And how confident can you be in your predictions?”
Learn to reduce excel file size. Tips include removing unnecessary formatting, compressing images, using formulas instead of hardcoded data, and optimizing pivot tables. Clearing unused cells and minimizing data ranges also help. Lastly, consider saving as binary or using third-party add-ins for further compression.