I am trying to do below example, not able to do it.
Excel Data in Sheet1:
id Sysid option status
XYZ XT Open status_1
US XT Close Status_1
US XT Open Stauts_2
NJ XT Open Status_2
IND VX Close Status_1
BAN VX Open Status_1
CHN XY Open Status_1
YST xy Close Status_1
In above data Status_1 and Sysid defines unique record,Based on this condition i have to find out which records have open and close difference for that unique record combination. If options are different I have to copy that data to different sheet using excel macro.This should work only for id’s US and CHN.Suppose if id has US ,it should compare with matching record based on sysid and Status. Any help appreciated.
Output Like below:
XYZ XT Open status_1
US XT Close Status_1
CHN XY Open Status_1
YST xy Close Status_1
Edited to include test for “US” or “CHN”