welshraz
New Member
- Joined
- Apr 29, 2016
- Messages
- 40
- Office Version
- 365
- Platform
- Windows
I have a set of very annoying data that I need to pull the UK postcodes from. They look like this:
WOODBURY";"WOODBURY";"EX5 1EE";"(SDU)";"Parent Shell";"false";"0";"0";"0";"";"Other";"";"Safe";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"false";"false";"false";"false";"";"";"";"50.679902";"-3.391585"
EXETER";"WOODBURY SALTERTON";"EX5 1EL";"(SDU)";"Commercial";"false";"1";"0";"0";"";"Other";"";"Contract";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"false";"false";"false";"false";"";"";"";"50.697388";"-3.386321"
BARNSTAPLE";"BARNSTAPLE";"EX32 9LP";"SDU";"Residential";"true";"0";"1";"0";"D";"Other";"Future";"Unknown";"NORTHMOOR";"";"";"";"";";"";"false";"false";"false";"false";"";"1313zobYAAS";"view";"51.070795";"-4.033579"
The post code is not always in the same position, and not always in the same column of data. I was using a combo of TEXTBEFORE and TEXTAFTER, using the space as the delimiter, but some town names have more that one word in their name, so that is a bust.
Any help greatly appreciated.
WOODBURY";"WOODBURY";"EX5 1EE";"(SDU)";"Parent Shell";"false";"0";"0";"0";"";"Other";"";"Safe";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"false";"false";"false";"false";"";"";"";"50.679902";"-3.391585"
EXETER";"WOODBURY SALTERTON";"EX5 1EL";"(SDU)";"Commercial";"false";"1";"0";"0";"";"Other";"";"Contract";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"";"false";"false";"false";"false";"";"";"";"50.697388";"-3.386321"
BARNSTAPLE";"BARNSTAPLE";"EX32 9LP";"SDU";"Residential";"true";"0";"1";"0";"D";"Other";"Future";"Unknown";"NORTHMOOR";"";"";"";"";";"";"false";"false";"false";"false";"";"1313zobYAAS";"view";"51.070795";"-4.033579"
The post code is not always in the same position, and not always in the same column of data. I was using a combo of TEXTBEFORE and TEXTAFTER, using the space as the delimiter, but some town names have more that one word in their name, so that is a bust.
Any help greatly appreciated.