A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Use a relative reference for the criteria cell instead of typing "C1" as text.
Change the formula to this pattern:
=SUMIF('Invoices 26-27'!$F$48:$F$75,C1,'Invoices 26-27'!$J$48:$J$75)
Then drag down. Excel will change:
-
C1toC2 -
C2toC3 - and so on
The ranges stay the same because of the $ signs:
-
$F$48:$F$75 -
$J$48:$J$75
If C1 must always stay in column C while dragging down, this version is safer:
=SUMIF('Invoices 26-27'!$F$48:$F$75,$C1,'Invoices 26-27'!$J$48:$J$75)
That locks the column to C but still lets the row change as the formula is filled downward.
For future months, the quickest approach is usually to set the formula once with the correct absolute ranges and then use the fill handle to copy it down. Excel automatically adjusts relative references when formulas are copied.