Thanks for the help, Lbass! The formulas worked great. However, with these formulus, I don't know what code (c1, c2, ... C30) the number corresponds with:
whileprinting records;
numbervar top1;
(and then the one for top2 and top3)
So, from the example in my first post, what I need to see...