+ Reply to Thread
Results 1 to 4 of 4

Need to show particular country name in attached sheet as per ID

  1. #1
    Registered User
    Join Date
    05-30-2013
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    20

    Need to show particular country name in attached sheet as per ID

    Hi,

    In the attached sheet, column A contains the organization ID of various organizations as SL001004 or IN0001982. I need to write a function which will show the country name as "SRI LANKA" for a ID starting as SL or "INDIA" for a ID starting as IN in the column E.
    I tried working it out with the IF function.
    Needless to say, did not work.

    Please help.

    Best,

    Abhinav
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Need to show particular country name in attached sheet as per ID

    This is one of several ways of accomplishing this (see attached).
    Attached Files Attached Files
    If I've been of help, please hit the star

  3. #3
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Need to show particular country name in attached sheet as per ID

    There are two different way of doing it in attached file.
    One if IF formula solution.
    E1 cell =IF(LEFT(A2,2)="SL","Sri Lanka", IF(LEFT(A2,2)="IN","India","Different Country"))

    Another way is creating table for Country ID-s. Its more efficient if there are many countries.

    See the attached file.
    Attached Files Attached Files
    Appreciate the help? CLICK *

  4. #4
    Registered User
    Join Date
    05-30-2013
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Need to show particular country name in attached sheet as per ID

    Thanks guys!

+ 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