Indirect - error

K

Kashyap

Hi,

=SUMPRODUCT((Hiren!B4:B1000=B10)*(Hiren!C4:C1000=C10)*(Hiren!I4:I1000=L1)*Hiren!G4:G1000)

I'm trying above formula with indirect as below but I'm not getting result
from below formula..

Where am I going wrong?

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000"=B10))*(INDIRECT("'"&H10&"'!C4:C1000"=C10))*(INDIRECT("'"&H10&"'!I4:I1000"=$L$1))*(INDIRECT("'"&H10&"'!G4:G1000")))
 
P

Patrick Molloy

=SUMPRODUCT( (INDIRECT(H10&"'!B4:B1000")=B10)
*(INDIRECT(H10&"'!C4:C1000")=C10)
*(INDIRECT(H10&"'!I4:I1000")=$L$1)
*(INDIRECT(H10&"'!G4:G1000"))
)
 
D

Dave Peterson

A typo warning.

That leading apostrophe was lost in your suggestion, Patrick.

Maybe...

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000")=B10)
*(INDIRECT("'"&H10&"'!C4:C1000")=C10)
*(INDIRECT("'"&H10&"'!I4:I1000")=$L$1)
*(INDIRECT("'"&H10&"'!G4:G1000")))
 
P

Patrick Molloy

it was supposed not to be there. my indirect worked without -- at last in my
workbook!
 
P

Patrick Molloy

however, having checked - obviously you're correct. Thats bizarre since i
just cut/pasted into the mail the formula that i had, which definitely worked
- i wouldn't have posted otherwise.
However, without the apostrophe, i get the expected #Ref error. Hmmmm

apologies & thanks

Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top