A
Alexander Bogomolny
Hello:
I have a nested function that is uncomfortably long for typing:
=SUMPRODUCT(SUMIF(INDIRECT("'" & wslist & "'!A1"),"<>0",INDIRECT("'"&
wslist & "'!A1")))
As is, the function applies to the A1 cell. If I wish to use it with
another cell, say C3, (but the same wslist) I would type
=SUMPRODUCT(SUMIF(INDIRECT("'" & wslist & "'!C3"),"<>0",INDIRECT("'"&
wslist & "'!C3")))
Is it possible to define a function, e.g. MySum(cell) such that the
above examples would reduce to MySum(A1) and MySum(C3), respectively?
Thank you,
Alex
I have a nested function that is uncomfortably long for typing:
=SUMPRODUCT(SUMIF(INDIRECT("'" & wslist & "'!A1"),"<>0",INDIRECT("'"&
wslist & "'!A1")))
As is, the function applies to the A1 cell. If I wish to use it with
another cell, say C3, (but the same wslist) I would type
=SUMPRODUCT(SUMIF(INDIRECT("'" & wslist & "'!C3"),"<>0",INDIRECT("'"&
wslist & "'!C3")))
Is it possible to define a function, e.g. MySum(cell) such that the
above examples would reduce to MySum(A1) and MySum(C3), respectively?
Thank you,
Alex