Jyotirmaya
Board Regular
- Joined
- Dec 2, 2015
- Messages
- 216
- Office Version
- 2019
- Platform
- Windows
I have two columns A & B and have data from A1:A20, B1:B20
I am using the following code
1.Column C =IF(ISERROR(NOT(MATCH(A1:A20,$B$1:$B$20,0))),A1,"")
2.Column D =IF(ISERROR(NOT(MATCH(B1:B20,$A$1:$A$20,0))),B1,"")
In column C I am getting the missing numbers which I have there in Column A but not in Column B
In column D I am getting the missing numbers which I have there in Column B but not in Column A
I want a VBA macro code to do so.
what will be the code ?
I am using the following code
1.Column C =IF(ISERROR(NOT(MATCH(A1:A20,$B$1:$B$20,0))),A1,"")
2.Column D =IF(ISERROR(NOT(MATCH(B1:B20,$A$1:$A$20,0))),B1,"")
In column C I am getting the missing numbers which I have there in Column A but not in Column B
In column D I am getting the missing numbers which I have there in Column B but not in Column A
I want a VBA macro code to do so.
what will be the code ?