Split Text into Different Columns - Formulas only - No VBA - or Text to Columns

Richard2542

Board Regular
Joined
Apr 27, 2017
Messages
102
Office Version
  1. 365
  2. 2013
I need a series of formulas to convert a single line of text into 4 columns.

Address:
1927 S Apple Valley Rd., Madison, WI, 34561

Convert To:

Column A2

1927 S Apple Valley Rd.

Column B2
Madison

Column C2
WI

Column D2
34561
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi

Excel Formula:
=TRANSPOSE(FILTERXML("<y><z>"&SUBSTITUTE(A1,", ","</z><z>")&"</z></y>","//z"))
 
Upvote 0
richard2542, Good evening.

If your data have ALL the same standard, try using these formulas:

A2 -->
Excel Formula:
=TRIM( MID( SUBSTITUTE(A1, ",", REPT(" ",100) ),    1, 100))
B2 -->
Excel Formula:
=TRIM( MID( SUBSTITUTE(A1, ",", REPT(" ",100) ), 100, 100))
C2 -->
Excel Formula:
=TRIM( MID( SUBSTITUTE(A1, ",", REPT(" ",100) ), 200, 100))
D2 -->
Excel Formula:
=TRIM( MID( SUBSTITUTE(A1, ",", REPT(" ",100) ), 300, 100))

Please tell us if it worked for you.

I hope I've helped.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Split text into columns - formula only, no vba or excel Text to Columns
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
richard2542, Good evening.

If your data have ALL the same standard, try using these formulas:

A2 -->
Excel Formula:
=TRIM( MID( SUBSTITUTE(A1, ",", REPT(" ",100) ),    1, 100))
B2 -->
Excel Formula:
=TRIM( MID( SUBSTITUTE(A1, ",", REPT(" ",100) ), 100, 100))
C2 -->
Excel Formula:
=TRIM( MID( SUBSTITUTE(A1, ",", REPT(" ",100) ), 200, 100))
D2 -->
Excel Formula:
=TRIM( MID( SUBSTITUTE(A1, ",", REPT(" ",100) ), 300, 100))

Please tell us if it worked for you.

I hope I've helped.
Thanks for your help...worked great
 
Upvote 0

Forum statistics

Threads
1,215,374
Messages
6,124,573
Members
449,173
Latest member
Kon123

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