Just use this formula
on your master sheet, where H1:H4 consists the sheet names Sales2021, Sales2022, Sales2023, Sales2024 etc. And change the 99 to a larger row number if you have lots of rows in your indidual sheets.Code:=SUM(SUMIF(INDIRECT("'"&$H$1:$H$4&"'!A2:A99"), A2, INDIRECT("'"&$H$1:$H$4&"'!C2:C99")))




Reply With Quote

Bookmarks