|re: "i have to check AB rows with CD"|
It is not clear to me what you are trying to to do. A, B, C and D are columns, not rows.
Perhaps you could post some more example data and the desired results based on that data.
Please click on the blue line at the end of this post and read the instructions on how to post example data in this forum.
Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.