Solved

Excell to extract zip code / post code

Posted on 2011-02-23
4
294 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now