I have data in a Google spreadsheet that I need to match to their standard country codes. For e.g. Greater Chicago Area would be US. For all cells that need to be marked US, they seem to end with the word Area. For all other countries, they end with their country names.
I tried the following formula but it does not seem to work -
=IFS(ISNUMBER(FIND("Area",A64)), "US", ISNUMBER(FIND("*United Kingdom",A64)), "UK").
Is there a way to match partial text at the end of the string?

