Combined Filter Results

uk747

Well-known Member
Joined
Jul 20, 2011
Messages
843
Office Version
  1. 365
Platform
  1. Windows
HI

Trying to combine the results of 4 filters from the same Data
What I need to do is look for where ever Dave appears in Name1, Name2, Name3 or Name 4 Column and show those Rows.
Required result is at the bottom which shows only Rows where Dave appears and doesn't include duplicate rows where he might appear in more than 1 column

Individual filters would be =FILTER($C$3:$H$14, C3:C14= "Dave") =FILTER($C$3:$H$14, D3:D14= "Dave") =FILTER($C$3:$H$14, E3:E14= "Dave") =FILTER($C$3:$H$14, F3:F14= "Dave")
But not sure how to get above filters together(removing duplicates)

Data Below is in C2:H14(Headers are in Row 2)
Name1Name2Name3Name4Value1Value2
FredDaveDaveBen
6332​
5122​
HarryFredFredBen
7979​
5898​
GeorgeDaveDaveFred
7847​
8882​
MaryCliveDaveBen
7825​
7426​
FredDaveDaveBen
9567​
9215​
HarryFredFredDave
6783​
9997​
GeorgeDaveDaveFred
5034​
7957​
MaryCliveTomBen
5504​
5087​
MaryDaveDaveBen
5887​
8104​
HarryFredFredBen
7581​
7460​
GeorgeGeorgeHarryFred
8673​
6727​
MaryCliveDaveBen
8958​
6284​


Required Result
Name1Name2Name3Name4Value1Value2
FredDaveDaveBen
6332​
5122​
GeorgeDaveDaveFred
7847​
8882​
MaryCliveDaveBen
7825​
7426​
FredDaveDaveBen
9567​
9215​
HarryFredFredDave
6783​
9997​
GeorgeDaveDaveFred
5034​
7957​
MaryDaveDaveBen
5887​
8104​
MaryCliveDaveBen
8958​
6284​
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How about
Excel Formula:
=FILTER(C3:H14,BYROW(C3:F14,LAMBDA(br,SUM(--(br="Dave")))))
 
Upvote 0
Solution
How about
Excel Formula:
=FILTER(C3:H14,BYROW(C3:F14,LAMBDA(br,SUM(--(br="Dave")))))

Thanks for the above. Is there a version without Lambda
using 2 pcs. one works but my main pc which also has 365 but unfortunately formula above doesn't work
 
Upvote 0
How about
Excel Formula:
=FILTER(C3:H14,MMULT(--(C3:F14="Dave"),SEQUENCE(COLUMNS(C3:F3),,,0)))
 
Upvote 0
Another option - combining ranges:
Excel Formula:
=FILTER(C3:H14,ISNUMBER(SEARCH("Dave",C3:C14&D3:D14&E3:E14&F3:F14)))
 
Upvote 0
Thanks Guys!

Fluffs original solution and MMULT worked on a version that had the newer functions and Georgiboy for all versions including legacy ones
 
Upvote 0
Glad we could help & thanks for the feedback.
My 2nd formula & Georgieboy's formula will only work with either 365 or 2021, nothing earlier.
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
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