I don't think you need an automated process for this....From the Data Menu, select Subtotals. You want to Subtotal on each changeof Job Name. Use the Function Count. Add the Subtotal to Program Name.