Forum Discussion
Dependent Dropdown List With Pivot Table
- Jan 02, 2022
Hi @kheldar
As Riny_van_Eekelen mentioned, using Excel 365 it is possible with FILTER and UNIQUE without using a pivot table.
The attached example is functional from Shift to Name where eg the formula in i9 results in the drop down list that is used in i2.
=UNIQUE(FILTER(Table1[Name];(--(Table1[Shift]=--$G2))*--(Table1[Group]=$H2)))G9 concatenates hour with minutes to make it look like time. TEXT() is not generic functional since h:mm is translated into eg t:mm in swedish Windows.
HOUR(data) & ":" & TEXT(MINUTE(data);"00")--G2 makes Excel treat the string as a number again.
-/-
G8:i9 may be cut and pasted on another sheet.
Thank you for your feedback 🙂
I saw this thread as i'm looking for almost similar scenario. I would like to ask how to do this if the shift header is not a time related, just text but also duplicates. Thank you!
- bosinanderOct 27, 2022Iron ContributorThe shift header is not needed to be time. Can be text.
Duplicates will give you problem since it is not possible to differ if you first or second instance of same text is chosen. And even if it was solved in the model, maybe it could be confusing for a user not knowing the difference between first and second duplicate..?- m_dashedOct 27, 2022Copper Contributor
Thank you for the reply. got an error #value!
Unfortunately I cannot upload. This is the formula from your file:
=LET(data,UNIQUE(FILTER(Table1[Shift],Table1[Shift]<>0)),
HOUR(data) & ":" & TEXT(MINUTE(data),"00")
)This is the table
Shift Group Name Text Video 1 Employee 1 8:00 Video 1 Employee 2 8:00 Video 2 Employee 3 Data validation: but i can choose "8:00" and give me the correct data validation but i cannot choose the "text" on the Shift column
Shift Group Name #VALUE! #VALUE! #VALUE! - bosinanderNov 10, 2022Iron Contributor
m_dashed You are of corse correct. The former attached example expected and parsed times in a way that gave you the error.
The now atteched file is more generic and will do it with text.
Duplicates are welcome in all of the three categories.G6:i9 can be moved to another sheet since it is only help calculations. Cut and paste if you want.