Goal: Print category running total and % of Category at bottom of each printed page
Problem: nothing in the Excel user interface can let a formula know you are at the bottom of a printed page
Yes, you can "see" the page breaks, but formulas can not see them
Possible solution: Use a macro
Strategy: Add the running total and % of category for each row. Hide on all rows.
Running Total for Category Formula: =IF(A6=A5,SUM(F6,G5),SUM(F6))
% of Category Formula: =G6/SUMIF($A$6:$A$2844,A6,$F$6:$F$2844)
If your workbook is saved as XLSX, do a Save As to save as XLSM
If you've never used macros, change macro security
If you've never used macros, show Developer tab
Switch to VBA
Insert a module
Type the code
Assign that macro to a shape
As the...