+ Reply to Thread
Results 1 to 3 of 3

assigning numerical values to a drop down list

  1. #1
    Registered User
    Join Date
    04-29-2016
    Location
    harare, zimbabwe
    MS-Off Ver
    ms office 2013
    Posts
    1

    assigning numerical values to a drop down list

    hi

    l'm new here and l hope you can help me....

    l have some survey results that l want to enter in a spreadsheet. l have created two (2) drop down list, one named RESULTS containing these values; positive,negative,no sample and invalid. the other drop down list named TYPES contains these values Malaria, TB, Schisto and AIDS. l want to assign values to the drop down list e.g positive = 1, Negative = 0, no sample= 2, invalid = 3.....malaria=1, tb=2, schisto=3, aids=4. l want the drop down list to reflect the numerical value rather than the words in the same cell of the drop down list. also when l select 1 (for positive) the drop down list (TYPES) on the next cell should give me the option to choose from 1-4 (the numerical values of the diseases), however if l choose 0,2 or 3 on the drop down list RESULTS l want the drop down list TYPE not to respond.
    l hope this is possible

    thank you in advance

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: assigning numerical values to a drop down list

    Hi,

    Would you upload the workbook and separately note a few examples of what you expect to see in response to various choices
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: assigning numerical values to a drop down list

    ashtreyy,

    Try the attached.

    "Results" DropList in D8 contains the four numbers for the various options.

    If you select "1" (Positive), then "Type" DropList in F8 will offer you the four numbers matching different diseases.
    If you select anything else, the "Type" DropList will not offer you any choice.

    As ever, the previous selection in "Type" will still show. If you want the DropBoxc to clear, you will need a small macro linked to the sheet that will turn the Type blank everytime you click on the RESULT DropBox.

    Hope that helps

    Ochimus
    Attached Files Attached Files
    Last edited by Ochimus; 05-23-2016 at 11:36 AM.

+ 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. VBA for assigning numerical values to each letter of the alphabet and SUMming strings
    By arthurspooner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2016, 09:54 PM
  2. Replies: 4
    Last Post: 02-20-2016, 02:44 PM
  3. Assigning a value to a drop down list
    By Minus9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-17-2014, 08:03 AM
  4. Assigning numerical values to items in a list and generating a sum
    By talrico in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2013, 06:08 AM
  5. Assigning numerical values to words
    By prwillard2 in forum Excel General
    Replies: 5
    Last Post: 03-10-2013, 02:33 PM
  6. Assigning numerical value to text in data validation list
    By Ryanuncsu in forum Excel General
    Replies: 2
    Last Post: 02-17-2013, 08:31 AM
  7. [SOLVED] Assigning Numerical Values to Letters and Multiplying Them
    By DNAguy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-16-2012, 09:57 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