+ Reply to Thread
Results 1 to 4 of 4

Thread: Drop down list to numbers

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    Centurion, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Drop down list to numbers

    Hello,

    I have a questionnaire spreadsheet in which numbers are used to rank the statements. However, I want to use a drop down list of answers in words, rather than numbers, but need these answers to create a predefined number in another cell.

    For example the drop down list will have yes (3), no(1), partially(2) and not applicable (0) and when one is selected its associated number pops up in an adjacent cell.

    Thanks in advance for your help.

  2. #2
    Forum Guru rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Drop down list to numbers

    Put
    A1: not applicable
    A2: no
    A3: partially
    A4: yes

    For cell B1: Validation List refers to A1:A4

    This function will give you the number
    =match(B1,A1:A4,0)-1
    Last edited by rwgrietveld; 02-12-2010 at 09:52 AM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,202

    Re: Drop down list to numbers

    You can do this:

    =LOOKUP(B1,{"no","not applicable","partially","yes"},{1,0,2,3})

    Define words as you like only sort them alphabeticaly
    "Relax. What is mind? No matter. What is matter? Never mind!"

  4. #4
    Registered User
    Join Date
    02-12-2010
    Location
    Centurion, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Drop down list to numbers

    Thanks a lot zbor, simple yet effective!

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