Filter with Multiple Criteria

GMC The Macro Man

Board Regular
Joined
Mar 23, 2023
Messages
64
Office Version
  1. 2021
Platform
  1. Windows
Hi there
I have a table which I use to pull data through using the =FILTER function - this is what I'm using "=FILTER(MrExcel,MrExcel[Dept]=A4)", The TABLE is called MrExcel :) .
I have a drop down list in A4 (Dept) that I select and it will produce the table underneath. However I now want to filter it further by Region or Role or UserName (B4-D4) but I cannot get the =FILTER function to work properly by using the AND/OR (*/+) within the formula
I want to have drop down lists in A4-D4 and this will allow me to select ANY permutation I want to be returned in the table.
Is the =FILTER function the right way to do this or should i be using something else.

Thanks in Advance

1685717566678.png
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
You can do that like
Excel Formula:
=FILTER(MrExcel,(IF(A4="",1,MrExcel[Dept]=A4))*(IF(B4="",1,MrExcel[Region]=B4)),"")
 
Upvote 0
Solution
You can do that like
Excel Formula:
=FILTER(MrExcel,(IF(A4="",1,MrExcel[Dept]=A4))*(IF(B4="",1,MrExcel[Region]=B4)),"")
Hi Fluff, apologies for the delay in getting back to you but I just want to say many thanks.. AGAIN... for solving this problem for me. You are an absolute STAR
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,358
Members
449,155
Latest member
ravioli44

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