Filter Array Based On Two Criteria

Maconi

New Member
Joined
Jun 30, 2016
Messages
24
I'm attempting to filter a column based on two different criteria. One of the criteria is static (matching a single number in a specific column) and the other criteria is dynamic (matching an array of numbers to a column).

I can pull the criteria separately, but when I attempt to combine them to filter the results further I get an error.

Pull All Of ID 43079's Units:
Excel Formula:
=FILTER(C:C,B:B=43079)
Pull Last 20 Unique Dates for 43079:
Excel Formula:
=INDEX(UNIQUE(FILTER(A:A,B:B=43079)),SEQUENCE(20))
Filter 43079's Units By Last 20 Unique Dates (broken):
Excel Formula:
=FILTER(C:C,(B:B=43079)*(INDEX(UNIQUE(FILTER(A:A,B:B=43079)),SEQUENCE(20))))

Any assistance is appreciated. I'm sure it's a simple fix, I just can't wrap my head around it.

Excel Problem.png
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Like this?

Excel Formula:
=CHOOSEROWS(UNIQUE(CHOOSECOLS(FILTER(A:C,B:B=43079),1,3)),SEQUENCE(20))


1707440948778.png
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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