+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    8

    How to Assign Number values to List Items

    Hello everyone,

    I read the forum rules and tried to be as specific in my topic as I can be and I hope the topic is not very confusing.

    Ultimately, what I would like to accomplish is this:

    I want to have a total of 4 columns A, B, C, and D

    Colum A has 3 list items for user to select "one" from drop down list.
    Colum B has 2 list items for user to select "one" from drop down list.
    Colum C has 3 list items for user to select "one" from drop down list.

    So far, I was able to create the list with selection items for these 3 columns. Where I got stuck is column D:

    I would like to have in column D predetermined ranges based on number ranges such as:

    0-3 - Low
    4-6 - Medium
    7-9 - High

    Column D should do an addition of the values assigned to each list item based on the user selection from the column A, B, and C, for example, list item 1 in column A has a value of 0, list item 2 has a value of 3, etc.

    Based on this tally score, let's say after user picks a list item for column A, B, and C we have a score of 6, I want column D to populate Medium on the field.

    Like I mentioned before, I was able to create a list using Validate option in excel, however, I am not able to assign number values to the list items and to the addition in column D as I mentioned. I would appreciate the help.

    Thanks!
    Last edited by NBVC; 09-24-2009 at 05:00 PM.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: How to Assign Number values to List Items

    Perhaps

    =Lookup(Sum(A2:C2),{0,4,7},{"Low","Medium","High"})

    where A2:C2 are first entries
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    09-24-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: How to Assign Number values to List Items

    Thanks for the quick reply. I believe this will take care of the column D.

    How can I go about assigning values to the list items for column A, B, and C? For example if I have 3 list items in Column A, I want to be able to assign numeric values to them, like:

    Red 0
    Yellow 1
    Green 3

    Thanks!

  4. #4
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: How to Assign Number values to List Items

    You mean something like?

    =LOOKUP(SUM(LOOKUP(A1,{"Green","Red","Yellow"},{3,0,1}),LOOKUP(B1,{"Green","Red","Yellow"},{3,0,1}), LOOKUP(C1,{"Green","Red","Yellow"},{3,0,1})),{0,4,7},{"Low","Medium","High"})

    adjust the text strings and corresponding numbers for each Lookup() based on the cell reference in the first argument...

    ... note, the text strings must be listed in ascending alphetical order in each lookup function...
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    09-24-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: How to Assign Number values to List Items

    Thanks a lot. This worked like a charm. Instead of using only one row, I added a range of rows since there are multiple rows involved.

    One last question, how can I go about adding color based on the range of the column D? As in Low would be green, medium yellow, and high red.

    Thanks again!

  6. #6
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,163

    Re: How to Assign Number values to List Items

    Format|Conditional Formatting...

    .. select Cell Value Is >> Equal to >> ="Low"

    click Format, choose colour, click Ok.

    Click Add,

    repeat for other 2 conditions.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  7. #7
    Registered User
    Join Date
    09-24-2009
    Location
    Indiana
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: How to Assign Number values to List Items

    Thanks you sir!

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