First , please refrain from posting duplicate questions on the forums. We have deleted the first question this time.
Here is the algo you can try -
Here is the algo you can try -
- Start the loop for ColA
- Store the value of column A in a variable say strColA
- Start a loop for ColB
- Compare the strColA for the current values of ColA, say tempColA on every iteration.
- As soon as strColA is not equal to tempColA, exit the ColB loop.
- Now your loop of ColA will repeat 1-5 till it process each row for ColA.