Address to multiple cell

patv

New Member
Joined
Dec 13, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Good morning

I have a excel spreadsheet that has 100 lines and in 1 column there is a mailing address in a cell set with the normal format of 3 lines as below
Name
Address
City, State zip

Is there a way to take the one cell and split to a cell for each category?


Thank you
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
If they are 'alt-enter'ing between lines, this will work:

MrExcelPlayground23.xlsx
FGHI
24John Smith 100 Main Street Anytown, NY 10001John Smith100 Main StreetAnytown, NY 10001
Sheet23
Cell Formulas
RangeFormula
G24:I24G24=TEXTSPLIT(F24,CHAR(10))
Dynamic array formulas.
 
Upvote 0
If they are 'alt-enter'ing between lines, this will work:

MrExcelPlayground23.xlsx
FGHI
24John Smith 100 Main Street Anytown, NY 10001John Smith100 Main StreetAnytown, NY 10001
Sheet23
Cell Formulas
RangeFormula
G24:I24G24=TEXTSPLIT(F24,CHAR(10))
Dynamic array formulas.


This did not seem to work it just put the formula in not sure exactly how the cell was created I belive they did a mailmerge
 
Upvote 0
If it's one line of text with a "wrap text" - taking it apart is much harder than you would think. Try increasing the width of the column a lot, does it revert to one long line?

My formula is looking for the 'alt-enter' that forces a line break in a cell - which is 'char(10)' - basically a tab. If there is no line breaks of any kind, handling addresses with formulas is never easy - names can have two or three words (or more or less), the same with address' and town names. I've never had great luck with that.
 
Upvote 0
James
increasing the width does not do anything -- i attached a image
 

Attachments

  • image001.png
    image001.png
    6.2 KB · Views: 4
Upvote 0
All Fluff's suggestion worked with the exception there is a coma then a space after the city , what changes in the formula do I need to do to have the city and state and zipcode split ( There is also a space between state and zip)
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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