2 row address in 1 cell, how to seperate to 2 cells?

nzt101

New Member
Joined
Sep 20, 2022
Messages
30
Office Version
  1. 365
  2. 2021
  3. 2007
Platform
  1. Windows
Hey guys,
my workbook has addresses in one cell, when you click on the pulldown arrow in the text input, it shows it as two lines,
street number street name
suburb, state, post code

I'm trying to make it seperate to two cells so it displays properly in a workbook, at the moment if i reference Cell R1, it shows the address all in one row and bunched up,
for instance
18 StreetnameSTSuburbname,STATE,POSTCODE (no spaces between comma and state/postcode)

whereas ideally i could get it to be like this
18 Streetname ST
Suburb, STATE, POSTCODE

i usually search the forum and google before asking but haven't found an answer to this one yet,
appreciate any help :)
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Have you explored looking for a zero length text string between the road type and suburb? A carriage return or line feed could do that. If Your address is in cell B2, then do this formula to get the character code:
=CODE(MID(A1,FIND("ST",A1,1)+2,1)), Cap letters are 65-90, Lower case are 97-122.
You can see all the characters in an array by doing Char(SEQUENCE(255,1,1,1)) in O365.
You can split the cell based on the code value in your formula, if it is a 10.. the the delimitter would be char(10).
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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