Help Parsing Text into Separate Fields

akuney

New Member
Joined
Jul 20, 2011
Messages
2
Hello,

I could really use some help parsing this data. All of the data is in the same field, and I would like to have each address field (i.e. Address1, City, State, Zip Code) in separate fields.

100 Laketrail Drive , Alpharetta, Georgia, 30022
1001 St Charles Ave , Atlanta, Georgia, 30306
102 Meadow Court , Fairburn, Georgia, 30213

I've found how I can parse out "100 Laketrail Drive" (for example):
=LEFT(A2,FIND(",",A2)-2)

And I've found how I can parse out "30022":
=TRIM(RIGHT($A$2,LEN($A$2)-FIND("^^",SUBSTITUTE($A$2,",","^^",LEN($A$2)-LEN(SUBSTITUTE($A$2,",",""))))))

But I need help with parsing out "Alpharetta" and "Georgia", please! I think I should be able to count the number of commas and parse out the data from one comma to the next comma. But I've spent a LONG time figuring it out and I can't seem to get it.

Can someone help me, please!

Aaron
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi Aaron
Welcome to the board

If the addresses have, like in the examples, the fields separated by commas, you just have to select the column and use Data->Text to Columns choosing comma for delimiter.
 
Upvote 0
Wow, don't I feel silly. I've seen that screen when importing new data, but I didn't realize I could do that from within a worksheet.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,281
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top