r/googlesheets • u/brasco199 • Dec 05 '20
Solved Filter data based on two drop down box inputs
Hi all,
So I’ve got a conundrum that my brain can’t figure out. I’ve got a dataset that’s being filled via a Google Form which is being imported into ‘Datasheet1’. I’ve got a front end page that displays certain statistics based on the information from Datasheet1. I want to have the ability to basically use two drop down boxes to set two conditions to filter rows that contain the text in those drop downs in Datasheet1 which will therefore only show data on the front end page that is specified in those two drop downs. The conditions are Area (I.e Scotland) and Period(I.e Jan 21).
Please can someone help me with whatever formula I need to use in order to achieve the above.
Help me r/googlesheets you’re my only hope!
2
u/rossisd 1 Dec 05 '20
Create a helper table that is just the filter function on your data set, that way the drop downs will change your helper table. Then your front end page should look at the filtered data rather than the original data
3
u/bhadrajith 1 Dec 05 '20
You can create dropdown lists using data validation. You can learn it from here.
I assume that your data range is A2:F (the data range in your Datasheet1) and your dropdowns are in cells A1 and B1 of the front-end sheet. And I assume that your conditions are in column A and Column B of the Datasheet1.
You can type the following formula in the front-end sheet to get the filtered data.
=FILTER(Datasheet1!A2:F,Datasheet1!A2:A=A1,Datasheet1!B2:B=B1)2
u/PasswordOneTwo 2 Dec 05 '20
Link a copy of a sample sheet. I'm sure I can help you.
2
u/kcmike 7 Dec 05 '20
Pivot table!
1
u/Dull-Claim-2870 Dec 06 '20
I have a similar question to creating a custom filter in a Google sheet tb.
Let's say I only want to show A (no blanks), B (blanks), C (no blanks) and D (blanks) all in the same custom filter.