One Column into 4 Columns without Text to Columns method

rwhite0823

New Member
Joined
Dec 20, 2017
Messages
7
I need help on how to take one column with an address and make it into multiple columns without using the Text to Columns method.

My example address looks like this:

[TABLE="width: 216"]
<tbody>[TR]
[TD="class: xl65, width: 216"]2000 STREET ADDRESS DR
CITY, STATE 20000[/TD]
[/TR]
</tbody>[/TABLE]

After I copy and paste that into a multiple column cell, I would like to have it in 4 columns going across:

2000 STREET ADDRESS DR CITY STATE 20000

I know there is the left, mid and right functions but I don't know how to do what I need. I would appreciate help.
 
Assuming your first piece of data is in cell A1, put these formulas in the indicated cells and copy them down to the bottom of your data...

B1) =PROPER(LEFT(A1,FIND("[",A1)-2))

C1) =PROPER(REPLACE(REPLACE(A1,FIND(",",A1),99,""),1,FIND("[",A1),""))

D1) =PROPER(REPLACE(LEFT(A1,LEN(A1)-11),1,FIND(",",A1)+1,""))

E1) =MID(A1,LEN(A1)-8,2)

F1) =MID(A1,LEN(A1)-5,5)

Here were there results:

David A Miller 123 Bridge Street Camp Springs, L 1837]

Anyway to get the last 3 columns to format correct?
 
Upvote 0

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Here were there results:

David A Miller 123 Bridge Street Camp Springs, L 1837]

Anyway to get the last 3 columns to format correct?
That means the data in the cell has a trailing blank space at the end of it. Does all of your data have this or only some of the cells?
 
Last edited:
Upvote 0
I'm copying and pasting the data so it does appear to have a trailing blank space at the end of the ]
As long as all of the cells have it, this is the simplest, most efficient fix... just change to the two formulas below...

E1) =MID(A1,LEN(A1)-9,2)

F1) =MID(A1,LEN(A1)-6,5)
 
Upvote 0
As long as all of the cells have it, this is the simplest, most efficient fix... just change to the two formulas below...

E1) =MID(A1,LEN(A1)-9,2)

F1) =MID(A1,LEN(A1)-6,5)
:


The new E1 and F1 work. the only thing is with D1 leaving a comma at the end:

Example [TABLE="width: 116"]
<tbody>[TR]
[TD="class: xl65, width: 116, align: left"]Camp Springs,[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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