Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #54: Data Prep Address Parsing

jdbartosh
8 - Asteroid

uploaded

ZenonH
8 - Asteroid

I followed a more manual approach by cleaning/standardizing the street names, and then removing easily parsed fields (state/zip) from the original field. With less to parse it was easier to isolate city

Spoiler
Zenon_0-1579794174017.png
ImranA
8 - Asteroid
Spoiler
Spoiler
ImranA_0-1579863060180.png
Spoiler
First formula - ZIP - Tonumber(Right([Address Text],6))
State - Right([Address Text],9)

Second formula - STATE - IF [ZIP] = "0" Then Right([State],2) else [State] endif
CITY - Replace([Address Text], [ZIP], " ")

Text to Columns - split to 3 columns (leave extra in last) CITY - "SPACE" 

Third Formula - CITY3 -  Left([City3], Length([City3])-3)
Word Count - CountWords([City3])
City - IF [Word Count] = "3" Then Replace([City3], GetWord([City3], 0), " ") else [City3] Endif
ZIP - "0" + [ZIP]
ZIP - If [ZIP] = "00" then Null() else [ZIP] Endif
 

 

 

I didn't like the idea of adding a text input and forcing a delimiter so I found a way around it 🙂 

mikeprice17
8 - Asteroid

Fairly similiar to the provided solution except I parsed out the data in formulas rather than the parsing tool.

AngelosPachis
16 - Nebula

My solution using RegEx 

dashakir1
8 - Asteroid

Thanks GeneR.

PeterH23
8 - Asteroid

My solution. Took a while, but I was quite pleased with this one.

Spoiler
3 separate regex parse tools (after reading up about regex).

Challenge#54_Image.png
sonyakasenkramer
8 - Asteroid
Spoiler
sonyakasenkramer_0-1580395275980.png
chris_ramsay_dup_425
8 - Asteroid

Thanks for the challenge, here's my solution

JeremyGonzva
8 - Asteroid

Could only parse ZIP and states.

Didnt' have the required level to get only the city