OzGrid

How to compare 2 columns and pull missing data into 3rd column

< Back to Search results

 Category: [Excel]  Demo Available 

How to compare 2 columns and pull missing data into 3rd column

 

Requirement:

 

Column A: Some employees (Partial List)

Column E: All employees (Complete List)

 

The user needs Column C to be populated with all other employees not in Column A (Column A compared to Column E to pull data into Column C that is not in Column A).

 

The user has tried IF, VLOOKUP functions and have come close but doesn't want any blank cells in Column C.

 

The user would prefer a VBA code (as column A and C are linked to an external datasource) and are populated using VBA.

 

Solution:

 

Solution and test file provided by Carim:  https://www.ozgrid.com/forum/forum/help-forums/excel-vba-macros/1210164-excel-compare-2-columns-and-pull-missing-data-into-3rd-column

 

Obtained from the OzGrid Help Forum.

Solution provided by Carim.

 

See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets

 

See also:

How to use code to remove columns
How to compare 2 columns and pull missing data into 3rd column
How to compare 2 columns in different worksheets and overwrite existing record if a match found
How to create VBA code to find next empty column and next empty row

 

Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.


Gallery