Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using INDIRECT to reference a sheet in a formula 1

Status
Not open for further replies.

mpm32

Technical User
Feb 19, 2004
130
US
I have this formula and it works well;

=SUMPRODUCT(-('Sheet1'!$D$5:$O$5<=$A$7),'Sheet1'!D9:O9)*-1

I have a cell A3 with the sheet name in it, when I try to use INDIRECT in this formula, I keep getting a #ref#. I know it's something simple like a missing ) or '.

Can anyone help correct this formula?


=SUMPRODUCT(-(INDIRECT($A$3&"!$D$5:$O$5"<=$A$7),INDIRECT($A$3&"!D9:O9")*-1

Thanks in advance!
 


hi,
[tt]
=SUMPRODUCT(-(INDIRECT($A$3&"!$D$5:$O$5")<=$A$7)*(INDIRECT($A$3&"!D9:O9")))*-1
[/tt]




Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Awesome works great, I love this forum!

Thanks, Skip
 



but why the NEG NEG?
[tt]
=SUMPRODUCT((INDIRECT($A$3&"!$D$5:$O$5")<=$A$7)*(INDIRECT($A$3&"!D9:O9")))
[/tt]



Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Hmm, not sure those must have been left over from my previous attempts at the formula, I took them out.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top