Counting Table In Order
There is an Excel file that teaches how to perform the Counting Table In Order operation.
Excel-Based Counting Table in Order
This workbook demonstrates counting table in order using VBA macros on a 5-row data layout.
Hope it is useful.