Merge multiple FILTER function results

JugglerJAF

Active Member
Joined
Feb 17, 2002
Messages
297
Office Version
  1. 365
Platform
  1. Windows
I have two separate tables (which must remain separate), each of which has a FILTER function applied. The first FILTER returns (ten) employee names from Table1 where the Age is between 21 and 30, the second returns (five) employee names from Table2 where the department is IT. So far so good...

What I now want to do is to keep the two filters I already have, but create a "master" list that combines all names from each of the FILTER formula results.

Possible??
 

Attachments

  • merge filters.png
    merge filters.png
    48.4 KB · Views: 195

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How about
Excel Formula:
=LET(RngA,I2#,RngB,K2#,r,ROWS(RngA),s,SEQUENCE(r+ROWS(RngB)),IF(s<=r, RngA, INDEX(RngB, s-r)))
 
Upvote 0
How about
Excel Formula:
=LET(RngA,I2#,RngB,K2#,r,ROWS(RngA),s,SEQUENCE(r+ROWS(RngB)),IF(s<=r, RngA, INDEX(RngB, s-r)))
That works a treat, many thanks! I'm just trying to get my head around how it works and what it's doing :)

Would it be possible to expand that to combine 3 or more FILTER function outputs?
 
Upvote 0
Yes you can do that like
Excel Formula:
=LET(RngA,I2#,RngB,K2#,RngC,M2#,ra,ROWS(RngA),rb,ra+ROWS(RngB),s,SEQUENCE(rb+ROWS(RngC)),IF(s<=ra, RngA,IF(s<=rb,INDEX(RngB, s-ra),INDEX(RngC,s-rb))))
 
Upvote 0

Forum statistics

Threads
1,215,513
Messages
6,125,253
Members
449,219
Latest member
daynle

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