+ Reply to Thread
Results 1 to 29 of 29

How to only display questions by a filter

  1. #1
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    How to only display questions by a filter

    Hi,

    I've attached an example of what i'm trying to achieve in hope some one can show me a simple solution.

    Basically I have a questionnaire with hundreds of questions, but i need a simple way of selecting which questions require displaying when the user selects either High, Medium or Low.

    The selection can be either a filter or other type it doesn't matter.. I just need the user to be able to select either High / Medium / Low and only the applicable questions are displayed.

    Hopefully the example version attached is clear to understand what i'm trying to achieve.

    Thanks in advance,

    Grant
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to only display questions by a filter

    It's not entirely clear (to me) what you want, but try:

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$2:$A$11)/(INDEX($F$2:$H$11,,MATCH($E$1,$F$1:$H$1,0))="Yes"),ROWS(D$2:D2))),"")

    in combination with the drop-down box in E1.

    See file.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    Are you still using Excel 2016?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi Ali,

    Unfortunately yes Excel 2016 as we have over 3000 users so the business cost to upgrade restricts when newer versions are rolled out.. Additionally, this questionnaire is issued out to third parties, and we have no idea what version they are using, so I have to ensure its compatible.

    Hi Glenn,

    Think my objective isn't clear maybe..

    I have a questionnaire with hundreds of questions, but not all questions are applicable to be asked. SO before the questionnaire is issued I need the user to make a selection of either High, Medium or Low.

    Making this selection will dictate which questions are displayed..

    So if High is selected - then it would display all questions.
    If Medium is selected - only medium & low rated questions will be displayed.
    If low is selected - only low rated questions will be displayed.

    In the example sheet i provided, you can see columns F, G & H dictate which questions are applicable to the question rating of High, Medium or Low. But rather than having to filter on those 3 columns, I wanted to find a way to have one filter with 3 options if that makes sense. Columns F, G & H can remain, so just need Column D to be populated with formula to show High / Medium / Low based on columns F, G & H

    Multiple columns can be added for formulas if needed, as they will be hidden and locked anyway..

    Thanks, Grant
    Last edited by Grant T; 07-27-2023 at 04:02 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    and we have no idea what version they are using,
    And how old could their systems be? How far back does compatibility need to go? Which version? This is a critical bit of information.

  6. #6
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi Ali,

    Hopefully none older than 2016, but who knows..

    That's why i'm trying to keep everything simple with basic formulas & filters. No tables, lookups etc, just data in columns like F, G, H with a formula in column D to show either High, Medium, Low which can be filtered at top of column D.

    Im sure an IF / OR formula of type would do it, but cant get to work..

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to only display questions by a filter

    I can't follow that. Please populate your sheet with EXACTLY what you want to see when, say, medium is selected (Where is L/M/H to be selected??).

    Too vague, so far.

  8. #8
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    So basically:

    Columns F, G & H can remain, so just need Column D to be populated with formula to show High / Medium / Low based on columns F, G & H.

    Then i can apply filter to D1 and select High, Medium, Low

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: How to only display questions by a filter

    PL see file.In E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Data validation done to E1.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi,

    Thank you, however think is little too complicated as is repeating the question in another column..

    I've attached a better example of what I'm trying to achieve..

    So I need formula for column D - which based on Columns, F,G,H - Column D will display High, Medium or Low.

    I can then just apply a filter to D1, which will have options of High, Medium, Low and only display the questions / rows required.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: How to only display questions by a filter

    Try in D2

    =INDEX($F$1:$H$1,MATCH("Yes",F2:H2,0))
    Attached Files Attached Files

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How to only display questions by a filter

    I asked you to show expected results - you didn't. There is no Dropdown in D1. There is now.

    One final guess (in the absence of expected answers clearly shown):

    =IF(INDEX($F$2:$H$11,,MATCH($D$1,$F$1:$H$1,0))="Yes",D1,"")
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi Glenn,

    Appears to be what I needed, will go apply to mine and see if right
    Last edited by Grant T; 07-27-2023 at 04:55 AM.

  14. #14
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi,

    That can work, but requires I add another column to filter out the actual questions.

    Example:

    F1 drop down options work and populate the F column correctly.
    - However I have to add column D to display the outputs from column F so I can then Filter / Hide the questions as applicable via D1 filter.


    Is there a better way than this, so the user doesn't have to perform BOTH actions in F1 then D1 to only display the required questions, as was hoping the user could simply make one selection of High, medium or Low and the relevant questions would be displayed..
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    How to only display questions by a filter

    Hi,

    With help from people here I managed to partly achieve my objective, although not as cleanly as I would like.

    What I have:

    Within the attached you will see it takes TWO steps to achieve displaying only the rows of questions which meet the criteria.

    1. Select the assessment level, then;
    2. Apply the filter

    What i'd like:

    To somehow achieve my objective of only displaying the rows of questions which meet the criteria with ONE step, is this possible, if so, how?
    Attached Files Attached Files

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    When you say one step, are you trying to get rid of one of those columns?

  17. #17
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi Ali,

    I'm not bothered what columns do or don't exist, as I will simply be hiding them before a questionnaire is sent out, so more or less columns can be applied.

    I simply want to be able to have ONE step to achieve the result of only displaying the rows with questions relevant to their rating / criteria.

    The one step would be to make choice / selection in one place for: High, Medium or Low.

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    Here's one possibility. In L3 copied down:

    =TEXTJOIN(", ",,FILTER($H$2:$J$2,H3:J3="Yes"))

    Column L can be hidden.

    In D3 copied down:

    =L3

    Now you can filter on a combination. Maybe not as pretty, but it's a one-stop shop for the user.
    Attached Files Attached Files
    Last edited by AliGW; 07-27-2023 at 10:16 AM. Reason: Workbook added.

  19. #19
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi Ali,

    I like the one-stop shop, hence me asking for help, but once I make a selection the options to re-select disappear?

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    What do you mean?

    I am able to select Low, Medium, High, for example, then go back to the filter and still see the other two available to select.
    Attached Images Attached Images
    Last edited by AliGW; 07-27-2023 at 10:36 AM.

  21. #21
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi Ali,

    I see what you see when i first click to open filter, but once I have made a filter choice and go back into the filter to make a different selection, the choices have gone and it just shows #NAME?

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    Oh, poo!

    I did not realise you had Excel 2016 - sorry. Give me a mo!

  23. #23
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    In L3 copied down:

    =IF(A3="","",IF(G3="N/A","",G$2&", ")&IF(H3="N/A","",H$2&", ")&I$2)
    Attached Files Attached Files

  24. #24
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    Are we there yet?

  25. #25
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Hi Ali,

    Yes the filter now remains when I go back in so is a working option for a one stop shop.

    Just not sure if this solution is more or less user friendly than the 2 step idea..

    Is there any other options where the filter could just show the text High, Medium, Low but the result is correct as per your example?

  26. #26
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    I need to log off now, so will look at it again tomorrow AM.

    Thanks for help so far, maybe I'm trying to achieve the impossible.. I just want a user to be able to select either, High, Medium or Low and the relevant questions display. Seems simple, but proving to be annoying!

  27. #27
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    I cannot think of a way, but that doesn't mean there isn't one - if there is, it would probably involve VBA.

    Why would it NOT be more user friendly than the two-step version? Wherever you have two choices, if you do things in the wrong order, you end up with frustration. I would put up with the less pretty but INFINITELY simpler option I've offered you.

    Anyway, I have given you what you asked for in terms of the way it works. It works, but apparently it's not good enough ...

  28. #28
    Registered User
    Join Date
    08-24-2022
    Location
    Hull, England
    MS-Off Ver
    2016
    Posts
    25

    Re: How to only display questions by a filter

    Thanks Ali and the other who have helped with this issue, very much appreciated.

    I will mark as resolved

  29. #29
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: How to only display questions by a filter

    You're welcome.

    I did look again, but I can't find a way to control filters formulaically, so I think it would have to be VBA.

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. [SOLVED] Formula that need to display yes or no based on a full row of yes / no questions
    By davo3286 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2021, 06:08 AM
  2. VBA Advanced filter questions
    By jibber1979 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2020, 09:57 AM
  3. Replies: 4
    Last Post: 04-12-2016, 03:50 PM
  4. Basic Questions On How To Display Data
    By insect in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2009, 09:15 PM
  5. Advanced Filter Questions
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2009, 03:40 PM
  6. More filter questions
    By grneyed in forum Excel General
    Replies: 4
    Last Post: 02-04-2008, 05:35 PM
  7. Questions on Auto Filter
    By Epinn in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-07-2006, 10:05 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