Aha, I was interpreting an even number of rows from the OP. I think I would need to know what "works" means to you for an odd number of rows in that case. Update: Or is the three rows an unhandled error condition you are talking about?
Also, if there are four rows, how do we know whether they are two pairs or not?
__________________________________________________________________________________
^M Free your mind!