Are you getting an error?
If sheet name in C1 has spaces (or is numeric) that won't work, you need
=SUMIF(INDIRECT("'"&C1&"'!$AE:$AE"),$A7,INDIRECT("'"&C1&"'!$Y:$Y"))
And this is what I am doing that is not working.
=SUMPRODUCT(INDIRECT("'"&C1&"'!$A:$A)=A2)*(INDIRECT("'"&C1&"'!$AD:$AD)=B2)*(INDIRECT("'"&C1&"'!$Y:$y))
Please help
Thanks