+ Reply to Thread
Results 1 to 3 of 3

Add ‘country name’ column to worksheet from a list of country codes.

  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    UK
    Posts
    31

    Add ‘country name’ column to worksheet from a list of country codes.

    Hi all,

    I've got a worksheet with five columns of data.

    One of the columns contains country codes.

    I have a list of countries that the codes relate to.

    I would like a new column in the worksheet that contains the country name.

    I'm not sure if this is possible, but it seem that most things are with VBA!

    The countries and their codes are on 'Sheet2'

    I relalise I might have to do some boring re-ordering of the data on 'Sheet2'

    I enclose example dataset.

    Thanks for any suggestions!

    Ben
    Attached Files Attached Files
    Last edited by Ben Morton; 04-02-2009 at 09:24 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Add ‘country name’ column to worksheet from a list of country codes.

    Use this formula in F2:

    =INDEX(Sheet2!A:A,MATCH(Sheet1!A2,Sheet2!B:B,0))

    and copy it down the column
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-02-2008
    Location
    UK
    Posts
    31

    Re: Add ‘country name’ column to worksheet from a list of country codes.

    Thankyou so much!

    Sorry thought this was a Job for VBA...


    Thanks again!

    Ben

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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