Penguinducky
New Member
- Joined
- Aug 25, 2016
- Messages
- 3
Trying to extract the City and State from a cell that has the Name of the Company, City and State in it and I only want to show the location. Problem scenarios I'm having:
City and State are mushed together (example: MissssaugaOntario)
Company name and city have a / or - between them (example: Company/Mississauga Ontario)
What I need example:
Name of Company Mississauga Ontario > Just want to see Mississauga Ontario
I have thousands of lines like this and will take forever to extract city and state manually. I found a formula that worked for some, but only if it has a comma that separates name of company and city and state. =TRIM(LEFT(RIGHT(SUBSTITUTE(A1,",",REPT(" ",255)),255,255))
No idea what the 255 means but like I said it worked from some lines.
City and State are mushed together (example: MissssaugaOntario)
Company name and city have a / or - between them (example: Company/Mississauga Ontario)
What I need example:
Name of Company Mississauga Ontario > Just want to see Mississauga Ontario
I have thousands of lines like this and will take forever to extract city and state manually. I found a formula that worked for some, but only if it has a comma that separates name of company and city and state. =TRIM(LEFT(RIGHT(SUBSTITUTE(A1,",",REPT(" ",255)),255,255))
No idea what the 255 means but like I said it worked from some lines.