My current file looks like this:
| IATA | ICAO | Airport name | Location served | Time | DST |
| AAA | NTGA | Anaa Airport | Anaa, Tuamotus, French Polynesia | UTC−10:00 | |
I am trying to get this:
| IATA | ICAO | Airport name | Location served | Time | DST | Word 1 | Word 2 | Word 3 |
| AAA | NTGA | Anaa Airport | Anaa, Tuamotus, French Polynesia | UTC−10:00 | | Anaa | Tuamotus | French Polynesia |
There is a slight issue here, there are some rows where the Location served is in the following form, there is no city name,
| IATA | ICAO | Airport name | Location served | Time | DST |
| AAO | SVAN | Anaco Airport | Anaco, Venezuela | UTC−04:00 | |
The String function that I am using in a formula function Creating a new column called Country, is this:
Substring([Location served],FindString([Location served], ',')+ 1, Length([Location served]))
The problem is that it isn't returning me the Country name, instead I am getting is everything after the 1st comma.
I am trying to get it all using one string function where I can get the Word 1 Field, Word 2 Field and the Word 3 Populated respectively, if the string is "Anaa, Tuamotus, French Polynesia", but if the string is "Anaco, Venezuela", then only the Word 1 and the Word 3 Fields are populated.
Is this possible? My build string is wrong I Know, but I am confused over the sentence above in my question here. Hope I am making it clear.
Any help is greatly appreciated.
Thank You.