Hey, I need to extract a name from a string in a format of [Numbers with SC] [ Numbers with SC] [Name] [LOCATION] [Alphanumeric] (Eg: 63/12-3 218391/23457-1892 Adam Smith NEW YORK BL12938LR12). What I initially thought of doing was use a MID Function to remove the beginning numeric values and special characters from the string and then use a LEFT function to search for the Location and remove everything including and after the location. [=LEFT(C3,(FIND(" NEW YORK",C3,1)-1))].
Issue is there's a lot of locations so I had to filter out each location then run the next location in the chain and repeat that process until all locations were accounted for. There has to be a faster way.
My thoughts now is to use an IF/Else function where it searches for a Location from a list that I give it and IF it finds the location it runs the appropriate LEFT function. Else it moves onto the next location.
Is this possible? If it is, is there a better/faster way? Thank you.
Also I have almost no experience in coding or macros.
Bookmarks