In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Address Clean up with NE, SE, NW, SW

TinaLong
7 - Meteor

Hi, I’m looking for help with cleaning up my address field. I receive the data in all caps. I typically will change the field to title case, but this also changes NW to Nw, NE to Ne…  how can I keep the street directions in all caps?

 

 
 Address Address 2CityStateZip
This is what I get125 BLUE STREET NWAPT. 2WASHINGTONDC20007
 258 GREEN STREET NESUITE 3WASHINGTONDC20007
 896 YELLOW STREET SW#9WASHINGTONDC20007
 7896 RED STREET SE WASHINGTONDC20007
      
      
 Address Address 2CityStateZip
 125 Blue Street NwApt. 2WashingtonDC20007
This happens with title case258 Green Street NeSuite 3WashingtonDC20007
 896 Yellow Street Sw#9WashingtonDC20007
 7896 Red Street Se WashingtonDC20007
      
      
 Address Address 2CityStateZip
This is what I want125 Blue Street NWApt. 2WashingtonDC20007
 258 Green Street NESuite 3WashingtonDC20007
 896 Yellow Street SW#9WashingtonDC20007
 7896 Red Street SE WashingtonDC20007
9 REPLIES 9
Raj
16 - Nebula

Do the Title case and then find and replace the directions.

Raj
16 - Nebula

Another way is to parse the right 2 character which will separate the direction and then do title case and then join back.

hope this solve your problem.

TinaLong
7 - Meteor

When I do a find and replace, it also replaces, for example, 123 SEed Street, 258 NEwton Street...

TinaLong
7 - Meteor

@Raj Okay, but what if my address has more information after NW, for example, 123 Blue Street NW Apt 3.  

I probably should have included that earlier.

Raj
16 - Nebula

replace
eg- " Ne " with " NE "

keep space on both side if there is extra data.
this should help

Raj
16 - Nebula

Please find attached for reference

binuacs
21 - Polaris

@TinaLong Another option

image.png

TinaLong
7 - Meteor

@binuacs This one works except for one piece.  When I have extra data after the SW or NW, etc. in the same field, for example, 7896 RED STREET SE Apt 9. 

My fault, I added that piece of information after my original question.  Right now, your multi field formula works if the field ends in NE, NW, SE, or SW.  Can you help me with the formula if there is additional data afterwards?

CoG
14 - Magnetar

Here is another work flow that handles everything with not too complicated Regex Formula:

Sample Workflow.png

Labels
Top Solution Authors