bringing missing names from the other table

INN

Board Regular
Joined
Feb 3, 2021
Messages
128
Office Version
  1. 365
Platform
  1. Windows
Hi
I have 2 tables. The second table is missing some names from the first table. What I want to do, is to find these names that are in table1 but not table2 and bring them to table2 and also bring the other missing columns like Dept, Age, Salary. How can I do that? Thank you very much. Please see tables below

Book1
ABCD
1NameDeptAgeSalary
2Mary1HR110
3Mary2IT220
4Mary3Sales330
5Mary4Marketing440
6Mary5HR550
7Mary6IT660
8Mary7Sales770
9Mary8Marketing880
10Mary9HR990
11
12
13
14NameDeptAgeSalary
15Mary1HR110
16Mary3Sales330
17Mary10HR990
Sheet1
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You can try the below :

Book1
ABCD
1NameDeptAgeSalary
2Mary1HR110
3Mary2IT220
4Mary3Sales330
5Mary4Marketing440
6Mary5HR550
7Mary6IT660
8Mary7Sales770
9Mary8Marketing880
10Mary9HR990
11
12
13
14NameDeptAgeSalary
15Mary1HR110
16Mary3Sales330
17Mary10HR990
18Mary2IT220
19Mary4Marketing440
20Mary5HR550
21Mary6IT660
22Mary7Sales770
23Mary8Marketing880
24Mary9HR990
Sheet1
Cell Formulas
RangeFormula
A18:D24A18=FILTER(A2:D10,COUNTIF(A15:A17,A2:A10)<>1)
Dynamic array formulas.
 
Upvote 0
Solution
This works so nice. Thank you so much. Can I ask you this question please:
Why when I do this

=FILTER(A2:D10,COUNTIF(A2:A10,A15:A17)<>1)

It does not work?

Thanks once again.
 
Upvote 0
In the countif formula used by you, you are counting whether cells A15:A17 exist in range A2:A10, out of which since 2 cells already exist, so nothing will return and the 3rd does not exist, so still nothing will return and hence you get "#Value!" error. In the countif formula used by me, as required, I get all the cells which does not exist in range A15:A17.
 
  • Like
Reactions: INN
Upvote 1
Another way to look at it would be ..

23 03 11.xlsm
ABCD
1NameDeptAgeSalary
2Mary1HR110
3Mary2IT220
4Mary3Sales330
5Mary4Marketing440
6Mary5HR550
7Mary6IT660
8Mary7Sales770
9Mary8Marketing880
10Mary9HR990
11
12
13
14NameDeptAgeSalary
15Mary1HR110
16Mary3Sales330
17Mary10HR990
18Mary2IT220
19Mary4Marketing440
20Mary5HR550
21Mary6IT660
22Mary7Sales770
23Mary8Marketing880
24Mary9HR990
Add missing
Cell Formulas
RangeFormula
A18:D24A18=FILTER(A2:D10,ISNA(MATCH(A2:A10,A15:A17,0)))
Dynamic array formulas.
 
  • Like
Reactions: INN
Upvote 1
Thank you all for the help. I appreciate it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
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