I need a macro to re-format UK postcode data to the form:
Format Example
AN NAA M1 1AA
ANN NAA M60 1NW
AAN NAA CR2 6XH
AANN NAA DN55 1PT
ANA NAA W1A 1HQ
AANA NAA EC1A 1BB
The issues with the data are double spaces, triple or no spaces between the outward code and inward code and capitalisation. Also some entries have spaces where there should be no spaces e.g M 1 1AA from the first example above.
Any help greatly received.
Format Example
AN NAA M1 1AA
ANN NAA M60 1NW
AAN NAA CR2 6XH
AANN NAA DN55 1PT
ANA NAA W1A 1HQ
AANA NAA EC1A 1BB
The issues with the data are double spaces, triple or no spaces between the outward code and inward code and capitalisation. Also some entries have spaces where there should be no spaces e.g M 1 1AA from the first example above.
Any help greatly received.