Forum Discussion
Crawforc
Oct 03, 2022Copper Contributor
How to reference user selected value from a filter
I am trying to reference the item a user picks from a filter. I cannot use a drop down list. For example, there is a column where a filter is applied. User selects 1 item in the list. How can I ...
- Oct 04, 2022
This might work if you only need to reference 1 selected item in the filter (If you need multiple, another formula can be drawn up).
=REDUCE("",category,LAMBDA(a,v,IF(SUBTOTAL(3,v)=0,a,v)))
Patrick2788
Oct 04, 2022Silver Contributor
This might work if you only need to reference 1 selected item in the filter (If you need multiple, another formula can be drawn up).
=REDUCE("",category,LAMBDA(a,v,IF(SUBTOTAL(3,v)=0,a,v)))- CrawforcOct 04, 2022Copper ContributorYes, this works!
If you don't mind, what would it be if multiple items were selected?- Patrick2788Oct 04, 2022Silver Contributor
Using the same sample workbook:
=LET(items,SORT(UNIQUE(MAP(category,LAMBDA(e,IF(SUBTOTAL(3,e)=1,e,""))))),FILTER(items,items<>""))- CrawforcOct 05, 2022Copper ContributorThank you so much, these both worked beautifully.