Solved

Excell to extract zip code / post code

Posted on 2011-02-23
4
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

751 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