Forum

Notifications
Clear all

How to split address text string into separate parts

7 Posts
4 Users
0 Reactions
86 Views
(@koolp3214)
Posts: 4
Active Member
Topic starter
 

I am trying to separate the address 2 (e.g. Ste 30) from the address column into the address 2 column.

I tried using a =Filter function to no success.

The text to column delimited function does not work for this scenarion.

i have attached a sample excel doc

 
Posted : 17/11/2022 10:25 am
(@jstewart)
Posts: 216
Estimable Member
 

Nothing attached. After attaching, be sure to click 'Start Upload' and wait for the grey tick mark. On that note, have you considered TEXTSPLIT?

 
Posted : 17/11/2022 11:33 am
(@koolp3214)
Posts: 4
Active Member
Topic starter
 

I have not consulted textsplit, i will look for that on the site.

 
Posted : 17/11/2022 2:03 pm
(@koolp3214)
Posts: 4
Active Member
Topic starter
 

I used =TEXTAFTER(C2" ",-2) I just need to work on a formula to remove the "STE" from the address 1 column, thanks for the tip.

 
Posted : 17/11/2022 2:44 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Patrick,

You can get the first part of the address with this

=IF(IFERROR(SEARCH(" Ste ",C2),0)>0,LEFT(C2,LEN(C2)-(LEN(C2)-SEARCH(" Ste ",C2))-1),C2)

 

and the second part of the address with this

=IF(IFERROR(SEARCH(" Ste ",C2),0)>0,MID(C2,SEARCH(" Ste ",C2)+1,LEN(C2)-SEARCH(" Ste ",C2)),"")

 

Please see attached file.

Regards

Phil

 
Posted : 17/11/2022 8:50 pm
(@debaser)
Posts: 836
Member Moderator
 

Using TEXTBEFORE with the same arguments should return the address up to the STE part.

 
Posted : 18/11/2022 6:44 am
(@koolp3214)
Posts: 4
Active Member
Topic starter
 

Thank you everyone!

 
Posted : 22/11/2022 10:46 am
Share: