Link to home
Start Free TrialLog in
Avatar of Edward Pamias
Edward PamiasFlag for United States of America

asked on

I need to extract city and state from a cell in Excel

All, is there a formula that can extract city and state from a cell in Excel

format is like so:   100 any street, South Plainfield, NJ

The cells start at C3 on down.
ASKER CERTIFIED SOLUTION
Avatar of Professor J
Professor J

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Text to column with "," as delimited will also work if your D & E columns are blanks.
Avatar of Rgonzo1971
Rgonzo1971

Hi,

pls try in D3
=TRIM(MID(SUBSTITUTE($C3,",",REPT(" ",999)),COLUMNS($A:B)*999-998,999))

Open in new window

then copy right and copy down

Regards
Avatar of Edward Pamias

ASKER

This worked perfectly ProfessorJimJam! Thank you!
Sorry guys I did not see the new comments till after I accepted the other solution. Notifications did not come through for some reason.
You are welcome.