Solved

find difference in xls and then delete unwanted rows in second one

Posted on 2016-11-04
1
28 Views
Last Modified: 2016-11-06
Hi,
I have two xls:

test1.xls one looks like :                 test2.xls second looks like;            

emplid       date                           emplid     date         addres1  city
                             
123         2016-01-01                    123         2016-01-01      112      111
123         2015-01-01                    123         2015-01-01
123         2014-01-01                    123         2014-01-01
234         2015-01-01                    123         2014-01-01
234         2015-01-01                    234         2015-01-01      222       444
345         2011-01-01                    345         2011-01-01
                                                       345         2011-01-01
                                                       345         2011-01-01      444       555


Idea is look at test1.xls and based upon emplid and date just pick that rows from test2.xls.

test2.xls has more rows but we need to compare and filter test2.xls just based upon emplid and date.


end result should be:



test3.xls          

emplid     date         addres1  city
                             
123         2016-01-01      112      111
123         2015-01-01
123         2014-01-01
234         2015-01-01      222       444
345         2011-01-01
0
Comment
Question by:sam2929
1 Comment
 
LVL 6

Accepted Solution

by:
Michael earned 500 total points
ID: 41875341
How should double entries be handled?

For example emplid 123 with date 2014-01-01
and emplid 345
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now