Text split state and zip into separate columns

pto160

Active Member
Joined
Feb 1, 2009
Messages
482
Office Version
  1. 365
Platform
  1. Windows
I am trying to use Textsplit to put the street address, city, state and zip code into separate columns. I can put the street and city into separate columns, but not the state and zip code.
Is there a way to do this?
The current delimiter is "_x00 a_" and comma.

Book2
ABCDE
1Current
2StreetCityCity/Zip Code
320800 Harper oaks dr_x00 a_Yonkers, NY 3380620800 Harper oaks drYonkers NY 33806
420800 Harper oaks dr_x00 a_Yonkers, NY 33569-592620800 Harper oaks drYonkers NY 33569-5926
5
6
7What I likeStreetCityStateZip Code
820800 Harper oaks dr_x00 a_Yonkers, NY 3380620800 Harper oaks drYonkersNY33806
920800 Harper oaks dr_x00 a_Yonkers, NY 33569-592620800 Harper oaks drYonkersNY33569-5926
Sheet1
Cell Formulas
RangeFormula
B3:D4B3=TRANSPOSE(TEXTSPLIT(A3,,{"_x00 a_",","},,,))
Dynamic array formulas.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hello, one way to do it could be:

Excel Formula:
=LET(
r,A3,
a,LEN(r)-LEN(SUBSTITUTE(r," ","")),
b,SUBSTITUTE(r," ","@",a),
TRANSPOSE(TEXTSPLIT(b,,{"_x00 a_",", ","@"},,,)))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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