HI All,
I have the following problem and it has me stumped.
I am being passed two columns (ID & Full Address)
| ID | Full address |
| 0001 | Catalyst Inc\nBay Road\nLondonderry\nCounty Londonderry\nBT48 7TG\nBT 4 8 7 T G\nUNITED KINGDOM |
| 0002 | 10 Thistle Street\nAberdeen\nAberdeenshire\nAB10 1XZ\nA B 1 0 1 X Z\nUNITED KINGDOM |
However, I would like to format the "full address" so its transposed into relevant columns
Expected Outcome :
| ID | Full address | Street | City | State | Zip 1 | Zip 2 | Country |
| 0001 | Catalyst Inc\nBay Road\nLondonderry\nCounty Londonderry\nBT48 7TG\nBT 4 8 7 T G\nUNITED KINGDOM | Catalyst Inc Bay Road | Londonderry | County Londonderry | BT48 7TG | BT 4 8 7 T G | UNITED KINGDOM |
| 0002 | 10 Thistle Street\nAberdeen\nAberdeenshire\nAB10 1XZ\nA B 1 0 1 X Z\nUNITED KINGDOM | 10 Thistle Street | Aberdeen | Aberdeenshire | AB10 1XZ | A B 1 0 1 X Z | UNITED KINGDOM |
Logic :
I have noticed that the Street can contain multiple lines, so to ensure that all the correct values are mapped to the correct columns, you need to start from the back of the full address(country) and work forwards
Example
Country -> Zip 2 -> Zip 1 -> State -> City
Then anything after the 5th extraction should be bundled into street
Looking forward to your response