I have to get my results like this:- If suppose Harry, Rob and Met are present 2133 32 45 45 CC Old Harry (D) (28%) 21 + -1 Rob (D) (31%) 78 + -1 Mett (D) (14%) 34 + -1 3 3 since all the are matching If only Gilli and Don are present in File 1 then 5789 78 66 32 DD Young Gilli (D) (10%) 39 + -1 Don (D) (66%) 98 + -1 2 2 since only 2 are matching 9027 56 77 29 GG Old Harry (D) (10%) 54 + -1 1 Since only 1 is matching with File 1