This post will guide you how to replace last comma character in a string in cells with “and” word in excel. How do I replace the last comma character from a string with another word “and” using an excel formula. How to replace last instance of comma with ‘and’ in a string in excel.
Replace Last Comma in String with “and”
If you have a list of data (B1:B4) that contain the text string and each word is separated by comma character. And you want to replace the last comma character with a new word “and”. How to achieve it.
#1 select one blank cell and type the following formula into the formula box.
#2 then press Enter key in your keyboard and drag the AutoFill Handler over other cell to apply this formula.
You will that all last commas in each selected cells have been replaced with “and” word.
Excel Substitute function
The Excel SUBSTITUTE function replaces a new text string for an old text string in a text string.The syntax of the SUBSTITUTE function is as below:= SUBSTITUTE (text, old_text, new_text,[instance_num])….
Excel LEN function
The Excel LEN function returns the length of a text string (the number of characters in a text string).The syntax of the LEN function is as below:= LEN(text)…