+ Reply to Thread
Results 1 to 5 of 5

If Statement challange

  1. #1
    Registered User
    Join Date
    04-02-2015
    Location
    Chester
    MS-Off Ver
    2010
    Posts
    1

    If Statement challange

    Hi I have a column in Excel which contains multiple post codes, I would like to in the adjacent column insert a different string dependant on the content within the original cell. For example the text could be M19, OL1 etc in the adjacent cell I would like it to display for M19 - East Manchester and for OL1 Oldham.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: If Statement challange

    You're best bet is to post a file else all we have to go on is 1 example.

    Just post the postcodes, DO NOT post a file containing complete addresses, names etc
    Maybe just copy the postcode column into a new spreadsheet along with how you want to see the results.
    Last edited by Special-K; 04-02-2015 at 08:18 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: If Statement challange

    I guess without looking at data this is not possible.... Need to find out the trend in data.....

  4. #4
    Registered User
    Join Date
    08-31-2011
    Location
    Stamford, CT
    MS-Off Ver
    Excel 2013
    Posts
    30

    Re: If Statement challange

    Do you have another table that contains the mapping file of zip to city? If you do, you could concatenate the zip using a vlookup based on a master mapping table with all of your possible city/zip combinations.

    eg.

    If your zip is in column A and you want the output in column B, put a table in Column D and E. D = zip code, E = city. (or in another sheet/workbook)

    Once the table is setup, you can use this formula in column B

    =A1&" - "&VLOOKUP(A1,D:E,2,0)

    You will have to list out the cities for each zip code, but once you have the master table you can use the table for future zip code look-ups.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: If Statement challange

    Hi, welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Also, it would help if you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Look for and copy challange
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2012, 07:36 AM
  2. LOOKUP challange
    By jfgc5 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-13-2007, 12:28 AM
  3. challange Please Help
    By Michael D Bay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2006, 10:30 AM
  4. challange
    By Michael D Bay in forum Excel General
    Replies: 1
    Last Post: 02-23-2006, 06:20 AM
  5. Replies: 12
    Last Post: 01-04-2006, 05:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1