Filter on Multiple Criteria

jwmi01

New Member
Joined
Jul 20, 2023
Messages
9
Office Version
  1. 2021
Platform
  1. Windows
Trying to filter an array based on multiple criteria. DISTRICT, VENDOR, AMOUNT. The Amount field needs to be pulled from the appropriate column based on the header value.

Trying to use the "Enter Date Here" in I9:K9 to manually identify the date that we want to match to columns A:D. I don't assume this should cause an issue, but the Data Source is on one tab and the Desired Filter Result will be generated in another tab. The goal is to use the cell values entered into K9, K10, K11 to establish the filter criteria in the formula. In all cases, only rows with $ should be filtered out - like A8:G8 shows $0 and has been omitted by the filter.

Have tried nested Filter functions, INDEX Match, helper rows etc. and can't seem to get it to work. Any suggestions are appreciated!

Example Filter File.xlsx
ABCDEFGHIJKLM
1DATA SOURCEDESIRED FILTER RESULT
2
3DISTRICTVENDORLAST NAMEFIRST NAME7/24/20237/25/20237/26/2023DISTRICTVENDORLAST NAMEFIRST NAMEAMOUNT
41ASMITHJOHN$ 193.24$161.00$119.411ASMITHJOHN$ 161.00
51BJONESMARY$ 191.92$ 60.24$ 73.701ARUTHBABE$ 111.12
62ABRADYTOM$ 902.87$ 50.00$494.401ADAVISMILES$ 111.12
72ABIDENJOE$ 25.00$ 50.00$215.551AHITCHCOCKALFRED$ 245.00
81AJORDANMICHAEL$ 50.00$ -$ 59.69
91DLINCOLNABRAHAM$ 276.45$100.00$251.79DISTRICT1
101ARUTHBABE$ 100.00$111.12$264.53VENDORA
112BOSBOURNEOZZY$ 25.00$350.00$275.00DATE7/25/2023
122ALEWISKIM$ 91.00$161.00$182.50
132AGRISHAMJOHN$ 132.50$ 60.24$ 79.85
144BALIMUHAMMAD$ 31.91$ 50.00$189.49
154CTYSONMIKE$ 102.67$ 50.00$134.40
164CPFEIFERMICHELLE$ 25.00$129.69$142.98
173AGINGERMARYANN$ 245.00$100.00$800.00
181ADAVISMILES$ 320.92$111.12$123.83
193BTICKYFOWLER$ 200.00$350.00$200.00
205BKINGSTEVE$ 250.00$ 102.67$276.17
215ATOMASIROLLO$ 328.40$ 25.00$352.34
221AHITCHCOCKALFRED$ 54.86$ 245.00$428.51
Sheet1
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Sorry...disregard "Enter Date Here" in I9:K9". I edited the example file so that the criteria are entered into K9, 10, and 11.

Thanks!
 
Upvote 0
See if this works for you.

23 07 23.xlsm
ABCDEFGHIJKLM
1DATA SOURCEDESIRED FILTER RESULT
2
3DISTRICTVENDORLAST NAMEFIRST NAME7/24/20237/25/20237/26/2023DISTRICTVENDORLAST NAMEFIRST NAMEAMOUNT
41ASMITHJOHN193.24161119.411ASMITHJOHN161
51BJONESMARY191.9260.2473.71ARUTHBABE111.12
62ABRADYTOM902.8750494.41ADAVISMILES111.12
72ABIDENJOE2550215.551AHITCHCOCKALFRED245
81AJORDANMICHAEL50059.69
91DLINCOLNABRAHAM276.45100251.79DISTRICT1
101ARUTHBABE100111.12264.53VENDORA
112BOSBOURNEOZZY25350275DATE7/25/2023
122ALEWISKIM91161182.5
132AGRISHAMJOHN132.560.2479.85
144BALIMUHAMMAD31.9150189.49
154CTYSONMIKE102.6750134.4
164CPFEIFERMICHELLE25129.69142.98
173AGINGERMARYANN245100800
181ADAVISMILES320.92111.12123.83
193BTICKYFOWLER200350200
205BKINGSTEVE250102.67276.17
215ATOMASIROLLO328.425352.34
221AHITCHCOCKALFRED54.86245428.51
Filter
Cell Formulas
RangeFormula
I4:L7I4=FILTER(A4:D22,(A4:A22=K9)*(B4:B22=K10)*(INDEX(E4:G22,0,MATCH(K11,E3:G3,0))>0))
M4:M7M4=LET(f,FILTER(E4:G22,E3:G3=K11),FILTER(f,(A4:A22=K9)*(B4:B22=K10)*(f>0)))
Dynamic array formulas.
 
Upvote 0
Solution
This works perfectly.

Thanks so much for the help Peter, solution will save us significant processing time!
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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