Here is what I have tried.
=SUM(VLOOKUP(B7,'1:31'!B7:D36,3,FALSE))
I have tried other variants of the this including putting
the sheets ('1:31')in front of the vlookup, and can not
get it to work.
I would appreciate any help I can get.
B.
=SUMPRODUCT(SUMIF(INDIRECT("'" & ROW(1:31) & "'!B7:B36"),
B7,INDIRECT("'" & ROW(1:31) & "'!D7:D36")))
--
Regards
Frank Kabel
Frankfurt, Germany
"Frank Kabel" <frank...@freenet.de> wrote in message
news:eCzMbWuB...@TK2MSFTNGP10.phx.gbl...
Appreciate your comment - could you explain why this is non-robust and
what alternative you would use :-)
Did you mean to replace
ROW(1:31)
with
ROW($1:$31)
Regards
Frank
The idiom to use is:
ROW(INDIRECT("1:31"))
even better:
ROW(INDIRECT("1:"&ExpressionThatComputesN))
even if all this is going to cost more.
"Frank Kabel" <frank...@freenet.de> wrote in message
news:Oc$DqCvBE...@TK2MSFTNGP11.phx.gbl...
ROW(INDIRECT("1:31"))
that way the sheet name won't change if for instance a row is inserted above
the row where the formula is.
Any row(1:31) or row($1:$31) will change to row(2:32) while the one with
indirect will stay hard coded
--
Regards,
Peo Sjoblom
"Frank Kabel" <frank...@freenet.de> wrote in message
news:Oc$DqCvBE...@TK2MSFTNGP11.phx.gbl...
--
Regards
Frank Kabel
Frankfurt, Germany