UrsulaLlaveria
5 years agoQrew Assistant Captain
Split a Text Field on a particular word
I have a text field that ends with " - TOTAL". However, in some cases, it will end with "- TOTAL_xxxxx".
Ex: location-xxxxx-name - TOTAL
Ex: location-xxx-name - TOTAL_xxxxx
I need everything before the "Total" and am trying to find a way to split the text field to get just that. I thought I could use Part(), but that will recognize each character, not the entire word. I also did notRight and counted out the characters, but that won't work with the TOTAL_xxxxx. Any ideas??
------------------------------
Ursula
------------------------------
Ex: location-xxxxx-name - TOTAL
Ex: location-xxx-name - TOTAL_xxxxx
I need everything before the "Total" and am trying to find a way to split the text field to get just that. I thought I could use Part(), but that will recognize each character, not the entire word. I also did notRight and counted out the characters, but that won't work with the TOTAL_xxxxx. Any ideas??
------------------------------
Ursula
------------------------------