hello all,
I have a column that represnets inforation in three different format . For example, Austin, TX, Remote - Texas, or Austin, TX (1234). in all three scenarios I need to bring back the state name (Texas in this example). I have a state abbreviation reference sheet which has name of the states in the first column and the abbreviation in the 2nd column which i have usedin this formula. can someone help me with this and advise why it is not working and how can I make it work?
=IF(ISNUMBER(SEARCH("Remote -", [Current Staff Location]@row)), "Remote",
IF(ISNUMBER(SEARCH(",", [Current Staff Location]@row)), TRIM(MID([Current Staff Location]@row, FIND(",", [Current Staff Location]@row) + 1, LEN([Current Staff Location]@row))),
IF(ISNUMBER(SEARCH("(", [Current Staff Location]@row)),
MID([Current Staff Location]@row, SEARCH("(", [Current Staff Location]@row) + 1, SEARCH(")", [Current Staff Location]@row) - SEARCH("(", [Current Staff Location]@row) - 1),
VLOOKUP(TRIM([Current Staff Location]@row), {Abbrev}, 1, FALSE)))))
@Genevieve P. @Andrée Starå @Paul Newcome