
Using the LEFT, RIGHT, and FIND text functions in a formula, I was able to have Excel extract substrings into new fields. Extract Last Word In Cell Excel Zip Code Sorting.We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. And also you can follow us on Twitter and Facebook. If you liked our blogs, share it with your friends on Facebook.

In this way, we can extract last word & last occurrence of the specific character.In the above scenario, the substring is basically "\" which has a length of 1, so we can leave at the end and use the following formula: (len(string)-len(substitute(string, substring, "")))\len(substring).We use find for and substitute the very last "\" with It determines the last one by using.The above formula tells us the right-most “\” is at character/position 23, 15 & 9.To get the position of the last \, you would use this formula in cell B2:.Question: How can I know the position of the last occurrence of any special character say dot, comma, back slash, etc.įollowing is the snapshot of the column A that has multiple “\” & the formula needed to find the position of the last occurrence of back slash (\) Let us take another example in which it is required to find the last occurrence of a specific character. In this way, we can use the formula we are comfortable with & get the solution. This formula has the combination of TRIM, RIGHT, LEN, FIND & SUBSTITUTE functions.



This formula has the combination of TRIM, RIGHT, LEN, MAX, ROW, INDIRECT & MID functions.Let us first find the solution using array. We will find the same solution with different formulas. Question: How can I extract the last word as the data I have contains separator as “space”, “comma”, “dash” or any other thing.įor more information on question you can click on this link: Extract Last Wordįollowing is the snapshot of preferred output data: In this article, we will focus on extracting last word & last occurrence of specific character from a cell. If you are required to extract last word from a string in excel, then you can use combination of various functions.
