Hi, welcome to the forum
Instead of copying all the data to a new sheet, why not just sum it all to a new sheet?
This is fairly easy to do, follow these steps...
1. create a list of sheet names. If you dont have that many, just type them into the list
If you have lots, then use the UDF (User Defined Function)
...Create a range name and call it SheetNames (rght click any cell, select Define Names)
...in the Refers to: =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),"")
...click OK
To get a list of sheet names, put this in a cell and copy down (started in A2)...
=IFERROR(INDEX(Sheetnames,ROWS($A$2:A2)),"")
If you want to be able to click the cell and go to that worksheet, change that formula to this...
=IFERROR(HYPERLINK("#"&"'"&INDEX(Sheetnames,ROWS($A$2:A2))&"'!A1",INDEX(Sheetnames,ROWS($A$2:A2))),"")
Now you have a list of sheet names. To do the sum, use this (adjust ranges as needed)...
Sum across sheets =SUMPRODUCT(SUMIF(INDIRECT("'"&Sheetnames&"'!T6:T1000"),C794,INDIRECT("'"&Sheetnames&"'!M6:M1000")))
Bookmarks