Solved

Excell to extract zip code / post code

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

758 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

20 Experts available now in Live!

Get 1:1 Help Now