1/. So where did you get "Melbourne/Inala/lakes" from?
2/. How do we decide whether to return the last word, as your post suggests, or the last two words, as your sample asks for in the case of "North Lakes"?
There are no consistant separators to allow us to do this.
3/. All of your sample strings have trailing spaces in varying amounts. How does that happen?
It makes string comparism unreliable.
You should at least use TRIM() to clean the list before going further.
4/. This modification in C6 will return the last word from your sample data
or if you have a trailing comma in the result, such as in "Inala, ", this will remove it.
As for "North Lakes" this might do it to some extent, but it is not at all reliable, and I'm sure there will be other cases when you want to return more than the last word.
If you have a known list of second last words we could maybe use an array formula to go part of the way to solving this.
Put your known second last words in a separate list say F6:F9 (no blanks)
Then in C2, this array formula
Confirm with Ctrl+Shift+Enter not just Enter.
Then Drag/Fill Down.
This is not bullet proof but it might go some way to helping.
Bookmarks