Compare & Delete - EXCEL Macro Help
Closed
MickyFinn
Posts
1
Registration date
Thursday March 4, 2010
Status
Member
Last seen
March 4, 2010
-
Mar 4, 2010 at 01:01 PM
rizvisa1 Posts 4479 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Mar 4, 2010 at 01:17 PM
rizvisa1 Posts 4479 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Mar 4, 2010 at 01:17 PM
Related:
- Compare & Delete - EXCEL Macro Help
- Compare two worksheets and paste differences to another sheet - excel vba free download ✓ - Excel Forum
- Excel date format dd.mm.yyyy - Guide
- Spell number in excel without macro - Guide
- Macro excel download - Download - Spreadsheets
- Compare two excel sheets and highlight differences macro ✓ - Excel Forum
1 reply
rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
768
Mar 4, 2010 at 01:17 PM
Mar 4, 2010 at 01:17 PM
Well for this you do not really need macro. You can do a couple of step1
Lets say your data in sheet 1 (A:I) starts from row 2, then in J2 you can write
=IF(ISERROR(MATCH(C2, Sheet2!A:A,0)),0, 1)
Drag this formula to the last row of your data
Now apply filter to sheet 1 and filter on this new column for value 1. 1 represents the situation where there is a match between the number in C on sheet 1 and a number in A on sheet 2
Delete all the visible rows
Lets say your data in sheet 1 (A:I) starts from row 2, then in J2 you can write
=IF(ISERROR(MATCH(C2, Sheet2!A:A,0)),0, 1)
Drag this formula to the last row of your data
Now apply filter to sheet 1 and filter on this new column for value 1. 1 represents the situation where there is a match between the number in C on sheet 1 and a number in A on sheet 2
Delete all the visible rows