How to Split the addresses in cells

niladri20052006

Board Regular
Joined
Dec 3, 2010
Messages
121
Hi All,

I have the address in A2 like below...

240 Commerce,Irvine, CA, 92602-1318

I want to split all my addresses not by text to Columns but by formula.

Is there any formula so that street, City, State and postal code will be in each separate cell.

I want to use formula...

Thanks in advance!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I think you want somthing like this

=LEFT(B14,(FIND(",",B14)-1))

in each cell you want the different bits in, so in your example the above will give you

240 Commerce
 
Upvote 0
Hi

Thanks for your quick reply

But I want like below..

240 Commerce Irvine CA 92602-1318



All the above four will be in separate cell.

Is it possible by using formula?

Waiting for your reply..
 
Upvote 0
Hi,

Try this formula in B2

=TRIM(MID(SUBSTITUTE(","&$A$2,",",REPT(" ",200)),200+200*(COLUMNS($B$2:B2)-1),200))

copy across to C2, D2, E2

HTH

M.
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,522
Members
452,923
Latest member
JackiG

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