Solved

Excell to extract zip code / post code

Posted on 2011-02-23
4
296 Views
Last Modified: 2012-05-11
In a spreadsheet, the last digits in a call i a zip code / post code.

Is there some way of telling Excell to copy across the last  digits of a cell content?
0
Comment
Question by:Mawallace
  • 2
4 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 34960318
Are they UK postcodes?

If you have an address in A2 with the postcode at the end then this formula should extract the whole postcode

=TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",9)),20))

regards, barry
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 34960743
US codes?  Canada?  UK?  Other?

A sample file would be helpful :)
0
 

Author Comment

by:Mawallace
ID: 34968418
Uk
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34973640
Hello Mawallace, did you try my suggestion?

If you have an address in A2 with the full postcode, e.g.

10, Downing Street, London, SW1A 2AA

then the formula I suggested above in B2 will give you just the postcode, i.e. SW1A 2AA, is that what you need or something else?

regards,. barry
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question