FILTER Function with "Select All"

BrittKnee

Board Regular
Joined
Dec 4, 2017
Messages
82
Hi All! I currently am using the FILTER formula to allow the user to select their department from a drop down list which then populates a cell based on specific criteria. What my users are requesting is to allow the Chief to make multiple selections with the filter. For example, John Doe is the Chief of A and A consists of Departments A1, A2, and A3. I need to be able to allow the Chief to select all or multiple departments. Currently I am using this formula which allows the department heads and/or Chief to see each department:

=IFERROR(TEXTJOIN(","&CHAR(10),TRUE, SORT(FILTER(talent[Diversity Designation-Name],ISNUMBER(MATCH(talent[Band Level],Band,0))*(talent[9-Box designation]='Data Entry'!$AF$3)*(talent[Department]=$J$3)),1,-1)),"")

1653405645158.png
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
If you add "All" to the dropdown, then you could use
Excel Formula:
=IFERROR(TEXTJOIN(","&CHAR(10),TRUE, SORT(FILTER(talent[Diversity Designation-Name],ISNUMBER(MATCH(talent[Band Level],Band,0))*(talent[9-Box designation]='Data Entry'!$AF$3)*(IF($J$3="All",1,talent[Department]=$J$3))),1,-1)),"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,082
Members
449,205
Latest member
Healthydogs

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top