How to Autofill columns with Sum and Indirect formula

Sunshine8790

Board Regular
Joined
Jun 1, 2021
Messages
86
Office Version
  1. 365
Platform
  1. Windows
I have a workbook with 13 sheets. 12 of them are all set up like calendars, one for each month of the year.
The other one is a summary page.
It is the summary page I need help on.

So this is a small excerpt of my summary page table below:
The formulas in row 2 are all correct.
However, I need to be able to autofill the formulas in each column down without changing the first cell reference.
So for example in Column C, I want to keep the formula in C2 as:
Excel Formula:
=SUM(INDIRECT($C$1&"!"&"$AH12"))
But I want to be able to autofill it down (we're talking a few hundred rows I don't want to have to manually re-type the code) to keep the first reference to "C1" but change the 2nd cell reference by 1 increment.
So in cell C3, I want the formula to change from AH12 to AH13:
Excel Formula:
=SUM(INDIRECT($C$1&"!"&"$AH13"))
In cell C4, I want the same thing, keep the C1 reference, but change the AH reference to 14, etc, etc.

And of course I need the same logic for the other columns. To keep the first cell reference, but change the 2nd by 1 each time.

Any help?

PTO FY23 Tracker.xlsx
BCDEFGHIJKLMN
1Name/MonthJanFebMarAprMayJunJulAugSepOctNovDec
2Name 1000000000000
3Name 2000000000000
4Name 3000000000000
5Name 4000000000000
6Name 5000000000000
7Name 6000000000000
FY23 PTO Summary
Cell Formulas
RangeFormula
C2C2=SUM(INDIRECT($C$1&"!"&"$AH12"))
D2:D7D2=SUM(INDIRECT($D$1&"!"&"AE12"))
E2:E7E2=SUM(INDIRECT($E$1&"!"&"AH12"))
F2:F7F2=SUM(INDIRECT($F$1&"!"&"AG12"))
G2:G7G2=SUM(INDIRECT($G$1&"!"&"AH12"))
H2:H7H2=SUM(INDIRECT($H$1&"!"&"AH12"))
I2:I7I2=SUM(INDIRECT($I$1&"!"&"AG12"))
J2:J7J2=SUM(INDIRECT($J$1&"!"&"AH12"))
K2:K7K2=SUM(INDIRECT($K$1&"!"&"AG12"))
L2:L7L2=SUM(INDIRECT($L$1&"!"&"AH12"))
M2:M7M2=SUM(INDIRECT($M$1&"!"&"AG12"))
N2:N7N2=SUM(INDIRECT($N$1&"!"&"AH12"))
C3:C7C3=SUM(INDIRECT($C$1&"!"&"AH13"))
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try placing the following formula in cell C2 and drag-copying it down as needed:
Excel Formula:
=INDIRECT($C$1&"!AH"&ROW()-ROW($C$2)+12)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top