Split text using multiple spaces as identifier

pinco

New Member
Joined
Aug 16, 2011
Messages
5
I'm trying to split a list of addresses where the only unique identifer is the six spaces between the street address and city which is listed in one cell.
For example, the following text is in cell A3:

1234 Main St Chicago, IL 12345

=MID(A3,1,FIND(" ",A3,1)-1)

When I use the above formula it returns the #VALUE!

If I retype the address and use this formula it will return 1234 Main St which is what I'm looking for. I've used the format painter to reformat the text which was copied but I'm still receiving the #VALUE! problem - Please Help!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome to the board.

sounds like your spaces are not really spaces, some other character like a hard return.

What does this return

=CODE(MID(A3,13,1))

Where 13 is the position number of the first one of the 6 "spaces"
 
Upvote 0
Worked perfectly - thank you!!!

What would be the formula to split the city,state & zip into a cell?
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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