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 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Mar 4, 2010 at 01:17 PM
rizvisa1 Posts 4478 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
- Delete my whatsapp account without app - Guide
- Spell number in excel without macro - Guide
- Beyond compare - Download - File management
- Excel marksheet - Guide
- Excel free download - Download - Spreadsheets
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
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