+ Reply to Thread
Results 1 to 5 of 5

Define categories

  1. #1
    Registered User
    Join Date
    03-28-2013
    Location
    Malaysia
    MS-Off Ver
    MS 365
    Posts
    36

    Define categories

    Good day. I need to define the grade of employees for insurances plan. Column A is the grade code and column B is the grade name.

    I need in column C, where grade code 1 & 2 = Plan A, grade code 3 = Plan B, and rest 4 to 9 = is Plan C {Where grade code 10 to 12 = empty}

    Thank you in advance,

    Regards,
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Define categories

    welcome to the forum. maybe:
    ="Plan "&LOOKUP(A2,{1,3,4},{"A","B","C"})

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Define categories

    Please try this function

    From the cell C2
    =VLOOKUP(A2,{1,"Plan A";3,"Plan B";4,"Plan C";10,""},2)
    Please click 'Add reputation', if my answer helped you.

  4. #4
    Registered User
    Join Date
    03-28-2013
    Location
    Malaysia
    MS-Off Ver
    MS 365
    Posts
    36

    Re: Define categories

    Thank you very much for your help.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Define categories

    Put this formula in C2:

    =INDEX({"Plan A","Plan B","Plan C",""},MATCH(A2-1,{0,2,3,9}))

    then copy down to the bottom of your data.

    Hope this helps.

    Pete

+ 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. Replies: 1
    Last Post: 05-15-2013, 06:55 AM
  2. error 1004 application define or object define
    By jay11 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-11-2011, 04:09 AM
  3. Replies: 0
    Last Post: 07-22-2011, 03:51 PM
  4. Categories and Sub-Categories in Column Charts
    By theoneness in forum Excel General
    Replies: 2
    Last Post: 11-28-2009, 10:05 PM
  5. Define named range where user can define size
    By nahousto in forum Excel General
    Replies: 4
    Last Post: 07-06-2009, 05:09 PM

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