Compare & Delete - EXCEL Macro Help
Closed
MickyFinn
Posts
1
Registration date
Thursday 4 March 2010
Status
Member
Last seen
4 March 2010
-
4 Mar 2010 à 13:01
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 4 Mar 2010 à 13:17
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 4 Mar 2010 à 13:17
Related:
- Compare & Delete - EXCEL Macro Help
- Beyond compare - Download - File management
- How to merge and compare two excel files - Guide
- Excel mod apk for pc - Download - Spreadsheets
- Excel online macros - Guide
- Delete duplicates in excel - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
4 Mar 2010 à 13:17
4 Mar 2010 à 13:17
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