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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,215,091
Messages
6,123,062
Members
449,089
Latest member
ikke

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