See Summing Up Array Elements By Group. It's the same problem (just with a slightly different endgame).
In reply to Re: Group array in threes by fullermd in thread Group array in threes by joec_