+ Reply to Thread
Results 1 to 2 of 2

multiple choice answer

  1. #1
    Registered User
    Join Date
    04-15-2010
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    15

    multiple choice answer

    I am using this " =LOOKUP($N$2,$A$6:$A$3207,$H$6:$H$3207) " to search for a value,

    sometimes range a6:a3207 has more than one cell that meets the criteria.

    Is there a way to offer a choice of which cell to use. eg

    I am looking for post code 3011 in a6:a3207, there are 3 instances in the column. Footscray, Seddon and Seddon East,

    h6:h3207 displays the search result as Seddon East, simply because its the last one of the 3 choices.

    Any way to give the user the ability to select which one of the 3 displays ??

    Thanks
    Ian

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: multiple choice answer

    Hi,

    By changing the value of the final parameter (highlighted red) in the following array formula**, you will be able to generate matching results (1=1st match from top to bottom, 2=2nd match, etc.):

    =INDEX($H$6:$H$3207,SMALL(IF($A$6:$A$3207=$N$2,ROW($A$6:$A$3207)-MIN(ROW($A$6:$A$3207))+1),1))

    I would suggest combining this with a further, simple formula to give the number of occurrences for that value:

    =COUNTIF($A$6:$A$3207,N2)

    Users then know which parameters, from 1 up to this total, will give the desired matches and can choose accordingly.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Multiple Time Stamps depending on choice in Drop Down List Choice
    By insayah in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2022, 09:53 AM
  2. Replies: 3
    Last Post: 12-09-2013, 04:21 AM
  3. Replies: 2
    Last Post: 07-10-2012, 04:37 PM
  4. Replies: 5
    Last Post: 03-26-2012, 10:42 AM
  5. [SOLVED] how do u set up multiple choice answer buttons/dots?
    By pam123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2006, 08:48 AM

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