+ Reply to Thread
Results 1 to 7 of 7

Refine a list of data based upon answers to dropdown questions in excel

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Columbia, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Refine a list of data based upon answers to dropdown questions in excel

    I want to create an excel where I can have a bunch of yes/no questions in the form of dropdowns, and depending upon the combination of yes's and no's chosen, a giant list of data is refined to show only the data that applies to the exact combination of yes's and no's selected.

    Here is how I am attempting to accomplish this thus far:

    The first question is "Is the acquisition above the Simplified Acquisition threshold?" If "yes" is chosen from a dropdown, I have a cell to the right of the column displaying a predefined term using an IF function (i.e. =IF(B2="yes","OSAT",IF(B2="no","USAT",)). Therefore, if "yes" is chosen, the term OSAT is displayed in an adjacent column cell. If No, is selected, USAT is displayed instead. I intend to have numerous questions similar to this, each with answers that will display a different term depending on the dropdown answer selected. I will end up with a column filled with cells that have random terms in them.

    I also have a list of 400 contract clauses in descending rows, in column A for example. For each clause in column A, I want to type all of the terms associated with its use in Column B, separated by commas or some other form of separation.

    The overall goal is that if the user chooses "yes" in Question #1, the list of 400 clauses is refined so that only those clauses in column A with OSAT next to them will appear. This can either be a refinement of the actual 400 clause list, or a new list of all of the clauses that have OSAT associated with it in Column B. If I had a second question answered, the list would then further refine to only show the clauses that had both the term from question 1 AND question 2 located next to the clause in column B.

    I do not know what excel function would be appropriate to have this functionality. I can get the question dropdowns working, and can get my predetermined terms to appear in an empty cell once the question is answered, but I cannot get a list to refine based upon matches to the list of terms that appear from answering questions.

    Any help is appreciated. I have attached an excel sample titled "Testing". The yellow boxes are the dropdowns. In the example, when the answer is "yes" for both questions, I want a list of clauses that this answer combo would apply to displayed somewhere in the excel. In this particular case, a yes answer for both question should lead to the display of a list consisting of only the first clause (52.212-4) since this is the only clause with both OSAT and YDATA associated with it.

    Testing.xls
    Last edited by sk8blitz23; 01-17-2012 at 11:11 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Refine a list of data based upon answers to dropdown questions in excel

    This can be worked out in 2 ways -
    1. Select the values for all the dropdowns. The corresponding text(s) will appear. Then click on a button and the corresponding clause list will be displayed somewhere on the sheet or on a different sheet.
    2. As each value is being selected in the dropdown, the corresponding clause list will be displayed and depending on the changes to the dropdown, the list will get changed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    01-04-2012
    Location
    Columbia, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Refine a list of data based upon answers to dropdown questions in excel

    arlu1201,

    I agree with you that both points describe the general solution, however the problem is that I do not know the excel formula or macro code to make those points physically happen.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Refine a list of data based upon answers to dropdown questions in excel

    HTH
    Regards, Jeff

  5. #5
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,279

    Re: Refine a list of data based upon answers to dropdown questions in excel

    ...using Advanced Filter
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-04-2012
    Location
    Columbia, MD
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Refine a list of data based upon answers to dropdown questions in excel

    Dangelor,

    That works great! Thanks very much for the help.

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,279

    Re: Refine a list of data based upon answers to dropdown questions in excel

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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