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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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