I have a column of data that looks like this
DIESEL TRUCKDISTRICT 1
TRAILERDISTRICT 10
TRIPAC BATTERYDISTRICT 11
TRIPAC DIESELDISTRICT 2
VP TRUCKDISTRICT 4
I want to remove everything to the left of the word "District"
for the life of me I cant figure out how to do this
Help please!
Solved! Go to Solution.
Try the RegEx tool.
Regular Expression:
(.*)(DISTRICT)(.*)
Output Method: Parse
Or Regular Expression
(.*)(DISTRICT.*)
which gives this output:
My Excel brain told me to use the formula tool and below formula into a new field:
Right([Field1], Length([Field1])-(FindString([Field1], "DISTRICT")))
where field 1 contains your data
For RegEx mentioned by @ChrisTX it also worked using this : (.*)(DISTRICT.*) but I am still a bit unfamiliar with RegEx myself.
this worked perfectly
thank you!