It would be very useful if you provided sample input data for those, much in the way stevieb dit it in his answer.
In reply to Re: Nested loops? by Laurent_R in thread Nested loops? by Speed_Freak