sort and filter function with multiple criteria on "include"

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
289
Office Version
  1. 365
Platform
  1. Windows
how to filter sheet1 with the "include" criteria from multiple values (sheet 2: name).
basically if names from sheet 1 is available in sheet 2, then a formula in sheet 3 will extract the names/dept/group from sheet 1.


Book2
ABCDEFGHIJK
3EXPECTED RESULT
4sheet 1sheet 2SHEET 3
5namedept.groupnamename1A1
6name1A1name1name2B2
7name2B2name10name3C2
8name3C2name7name7B2
9name4D1name3name8C1
10name5E1name2name10E1
11name6A2name3
12name7B2name1
13name8C1name7
14name9D2name2
15name10E1name8
Sheet1
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I have done it on a single sheet like you have shown, but if you point the formula at the correct ranges there should be no trouble adapting to 3 sheets.
your thread title mentions "sort" but your description and sample didn't clarify that so i have done no sorting.


23 03 11.xlsm
ABCDEFGHIJK
3EXPECTED RESULT
4sheet 1sheet 2SHEET 3
5namedept.groupnamename1A1
6name1A1name1name2B2
7name2B2name10name3C2
8name3C2name7name7B2
9name4D1name3name8C1
10name5E1name2name10E1
11name6A2name3
12name7B2name1
13name8C1name7
14name9D2name2
15name10E1name8
16
Filter
Cell Formulas
RangeFormula
I5:K10I5=FILTER(A6:C15,ISNUMBER(MATCH(A6:A15,E6:E15,0)))
Dynamic array formulas.
 
Upvote 0
Solution
I have done it on a single sheet like you have shown, but if you point the formula at the correct ranges there should be no trouble adapting to 3 sheets.
your thread title mentions "sort" but your description and sample didn't clarify that so i have done no sorting.


23 03 11.xlsm
ABCDEFGHIJK
3EXPECTED RESULT
4sheet 1sheet 2SHEET 3
5namedept.groupnamename1A1
6name1A1name1name2B2
7name2B2name10name3C2
8name3C2name7name7B2
9name4D1name3name8C1
10name5E1name2name10E1
11name6A2name3
12name7B2name1
13name8C1name7
14name9D2name2
15name10E1name8
16
Filter
Cell Formulas
RangeFormula
I5:K10I5=FILTER(A6:C15,ISNUMBER(MATCH(A6:A15,E6:E15,0)))
Dynamic array formulas.
i thought the basis will be sheet 2 (name) it will need sorting. i guess i'm wrong.. actually, I tried to use that filter and match it doesn't work. It need to insert ISNUMBER to make it work. thanks sir for the new idea..
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,239
Members
448,879
Latest member
VanGirl

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