Filter Question

Tipsey

New Member
Joined
Oct 28, 2022
Messages
22
Office Version
  1. 365
Platform
  1. Windows
I am having trouble cross referencing and filtering 2 tables for matching numbers.

One table has a list of all employees and whether they have passed training. Table1[Number],Table1[Pass]
I have another table with employee numbers that are on shift today. Table2[Number]

I want to filter my list of people on shift today that have NOT completed training yet.

=FILTER(Table1[Number],Table1[Pass]<>"pass")

this formula gives me the list of people who still need their training, but I keep getting errors trying to use filter function on Table2[Number]

Please help :D
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Perhaps you give us small dummy examples of Table1 and Table2 and explain, with reference to those sample tables, what the expected result would be?
The best way to provide the small sample tables would be with XL2BB
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)
 
Upvote 0
I don't have XLBB available right now.

but this would be an example
Table1
1Pass
2
3Pass
4
5Pass
6
7Pass
8
9
10
Table2
1
4
5
6
9
10
Expected Result
4
6
9
10
 
Upvote 0
OK, thanks for the sample (not quite as good as XL2BB but much better than nothing. :biggrin:)

Is this what you want?
Table1 is columns A:B and Table2 is column E

If your Table1 is a bit more complex that what I have set up then the formula might need a bit of a tweak. Post back with more details of Table1 layout if that is the case.

Tipsey.xlsm
ABCDEFGH
1NumberPassNumberOn today & not trained
21Pass14
3246
43Pass59
54610
65Pass9
7610
87Pass
98
109
1110
12
Sheet1
Cell Formulas
RangeFormula
H2:H5H2=FILTER(Table2[Number],VLOOKUP(Table2[Number],Table1,2,0)="")
Dynamic array formulas.
 
Last edited:
Upvote 0
This is currently giving me a #N/A error. Is that an indication there is a problem with my input data?
 
Upvote 0
It's hard to tell. Does Table1 have any #N/A values in it? See the possible consequence of that below. Similar if Table2 has any #N/A error values

If you cannot use XL2BB can you for a start post a picture of each table (& advise the exact table names) and post the the formula if you have altered it at all to suit your circumstances.

Tipsey.xlsm
ABCDEFGH
1NumberPassNumberOn today & not trained
21Pass1#N/A
324
43Pass5
54#N/A6
65Pass9
7610
87Pass
98
109
1110
12
Sheet1
Cell Formulas
RangeFormula
H2H2=FILTER(Table2[Number],VLOOKUP(Table2[Number],Table1,2,0)="")
B5B5=NA()
 
Upvote 0
It appears the reason the NA error is coming up is because there are some numbers in table2 that do not exist in table1.
When I added 11 to table2, it gave the NA error.
 
Upvote 0
=FILTER(Table2[Number],IFERROR(VLOOKUP(Table2[Number],Table1,2,0)="",FALSE))

This is working well now. Thanks for the help Peter, I truly appreciate all of the helpful assistance everyone provides here.
 
Upvote 0
Cheers, glad you got it sorted. Not important, but you could be more specific with the N/A error like this,

Tipsey.xlsm
ABCDEFGH
1NumberPassNumberOn today & not trained
21Pass14
3246
43Pass59
54610
65Pass9
7610
87Pass11
98
109
1110
12
Sheet1
Cell Formulas
RangeFormula
H2:H5H2=FILTER(Table2[Number],IFNA(VLOOKUP(Table2[Number],Table1,2,0)="",0))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,629
Messages
6,173,446
Members
452,514
Latest member
cjkelly15

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