Vikram Dhemare
New Member
Hi everyone,
I’m working on summarizing data from multiple sheets using the INDIRECT function with three criteria: GL code, currency, and month. However, I keep running into a #VALUE! error when attempting the formula below:
=SUMPRODUCT(SUMIFS(INDIRECT("'"&Sheets&"'!$C$4:$N$500"),INDIRECT("'"&Sheets&"'!$A$4:$A$500"),$B8,INDIRECT("'"&Sheets&"'!$B$4:$B$500"),"USD",INDIRECT("'"&Sheets&"'!$C$3:$N$3"),MONTH(D$2)))
I’ve spent two days troubleshooting this issue but haven’t been able to resolve it. Any advice would be greatly appreciated!
Interestingly, when I simplify the formula and use only the SUMIF function, I get the results: but not when using SUMIFS function
=SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!$A$4:$A$500"),$B5,INDIRECT("'"&Sheets&"'!$C$4:$N$500")))
Does anyone know why the first approach isn’t working or how I can fix it? Thanks in advance for your help!
Sheets is a named range which has sheets names.
I’m working on summarizing data from multiple sheets using the INDIRECT function with three criteria: GL code, currency, and month. However, I keep running into a #VALUE! error when attempting the formula below:
=SUMPRODUCT(SUMIFS(INDIRECT("'"&Sheets&"'!$C$4:$N$500"),INDIRECT("'"&Sheets&"'!$A$4:$A$500"),$B8,INDIRECT("'"&Sheets&"'!$B$4:$B$500"),"USD",INDIRECT("'"&Sheets&"'!$C$3:$N$3"),MONTH(D$2)))
I’ve spent two days troubleshooting this issue but haven’t been able to resolve it. Any advice would be greatly appreciated!
Interestingly, when I simplify the formula and use only the SUMIF function, I get the results: but not when using SUMIFS function
=SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!$A$4:$A$500"),$B5,INDIRECT("'"&Sheets&"'!$C$4:$N$500")))
Does anyone know why the first approach isn’t working or how I can fix it? Thanks in advance for your help!
Sheets is a named range which has sheets names.
Last edited: