+ Reply to Thread
Results 1 to 3 of 3

Thread: Translator function

  1. #1
    Registered User
    Join Date
    11-11-2011
    Location
    Cuernavaca, México
    MS-Off Ver
    Excel 2007
    Posts
    2

    Translator function

    Hello, and thanks for read.

    I want to translate country codes ISO to FIPS.

    I have a column with ISO codes an other column with FIPS codes.
    Equivalents in the same row.

    I have other column with cities' names, next to other column with the ISO code of the country of city.

    I want to translate each ISO code to FIPS code in the cities column.

    For more comprehension, see this part of my spreadsheet
    ___________________________________________________________________________
    ISO_COLUMN........FIPS_COLUMN.........................ISO_COLUMN_CITY.........CITY_COLUMN
    ES................................SP................................................ES.............. ..................BARCELONA
    AW................................AA.............................................ES................. ...............ZARZA
    MA................................MO.............................................ES................. ...............ZUBIA
    ___________________________________________________________________________

    There are many more cities with ES and many more different cities with the same ISO code, for this reason I don't want to do that manually.

    I want to translate data in ISO_COLUMN_CITY using a function.
    Last edited by rulo4; 11-12-2011 at 12:57 AM. Reason: solved!

  2. #2
    Forum Guru 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Vienna, VA, USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    2,257

    Re: Translator function

    If the columns that you showed are A, B, C, D, then assume E will have the FIPS code for that city.

    In E2 use:

    =VLOOKUP(C2,A:B,2,FALSE)

    and copy down
    Making the world a better place one fret at a time
    ||||||

    If someone helped you, please click on the star icon at the bottom of their post

    If your problem is solved, please update the first post:
    EDIT, Go Advanced button, set Prefix to SOLVED

    [code]
    ' Enclose code in tags like this
    [/code]

    Don't attach a screenshot
    --just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.

  3. #3
    Registered User
    Join Date
    11-11-2011
    Location
    Cuernavaca, México
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Translator function

    Thanks, was just what I wanted!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0