How to compare two columns in two worksheets
Closed
rukanah
Posts
3
Registration date
Monday January 11, 2010
Status
Member
Last seen
January 17, 2010
-
Jan 12, 2010 at 08:07 AM
daveez - Aug 18, 2010 at 06:00 AM
daveez - Aug 18, 2010 at 06:00 AM
Related:
- How to compare two columns in two worksheets
- Display two columns in data validation list but return only one - Guide
- Beyond compare - Download - File management
- Excel compare two sheets - Guide
- Tweetdeck larger columns - Guide
- Transfer data from one excel worksheet to another automatically - Guide
2 responses
Create a new column for the results wherever you want. Use vlookup - =VLOOKUP(A19,E19:F31,2,FALSE) then copy down to all the appropriate cells. (A19 is the ID in the first cell in the first row of file 1. Replace E19:F31 with the range in File 2 of the ID (E19) and stock number (F19) E19 is the first ID in file 2 and F31 is the last amount of stock in file 2.
Copy this down to all the rows for file 1.
When run copy the results and then paste special - values.
Now apply a conditional format to each answer that compares the resulting stock amount to the stock amount in file 2. If it is the same, format the cell to be filled with RED.
Copy this down to all the rows for file 1.
When run copy the results and then paste special - values.
Now apply a conditional format to each answer that compares the resulting stock amount to the stock amount in file 2. If it is the same, format the cell to be filled with RED.
rukanah
Posts
3
Registration date
Monday January 11, 2010
Status
Member
Last seen
January 17, 2010
1
Jan 13, 2010 at 01:12 AM
Jan 13, 2010 at 01:12 AM
Hi Friends,
I am looking for a macro code to compare two excel files if the data matches it should copy the info from one file to another new file.
The comparision is like for eg: A Column (Name) and B Column( ID) in one sheet matches with the A column(EName) and B Column(Eid) then it should take the entire row from the second file and paste it another new excel file and save it. Also, it would be nice if the differences would be highlighted in a different color whether the line only occurs in the first file or in the second file.
Kindly help me out in creating this macro.
Regards,
Rukanah
I am looking for a macro code to compare two excel files if the data matches it should copy the info from one file to another new file.
The comparision is like for eg: A Column (Name) and B Column( ID) in one sheet matches with the A column(EName) and B Column(Eid) then it should take the entire row from the second file and paste it another new excel file and save it. Also, it would be nice if the differences would be highlighted in a different color whether the line only occurs in the first file or in the second file.
Kindly help me out in creating this macro.
Regards,
Rukanah