[英]INDIRECT FORMULA
I am having trouble working out an error I am having with the formula below, I am a bit of a novice and its been more trial and error than anything so far but, I was hoping someone with a far greater knowledge could point out where I am going wrong.我无法解决我在下面的公式中遇到的错误,我是一个新手,到目前为止,它比任何事情都要多试错,但是,我希望有更多知识的人可以指出我在哪里我错了。
The formula works fine without the indirect element Ie该公式在没有间接元素的情况下工作正常,即
=SUMPRODUCT((PARROT!$o$12:$o$250<>"COMPLETE")*(PARROT!$n$12:$n$250<TODAY()))
but I want to replace the sheet name with an INDIRECT address as the name of the sheet could change但我想用一个间接地址替换工作表名称,因为工作表的名称可能会改变
so the formula I came up with is but, it has an error:所以我想出的公式是但是,它有一个错误:
=SUMPRODUCT(INDIRECT("'"&$A3&"'!$o$12:$o$250"),"<>"&"Complete")*(INDIRECT("'"&$A3&"'!$N$12:$N$250")<TODAY())
Help would be very much appreciated.非常感谢帮助。
From your formula it seems you are just counting rows where O12:O250
is not equal Complete
and N12:N250
is earlier than today.从您的公式看来,您只是在计算
O12:O250
不等于Complete
且N12:N250
早于今天的行。 So, you can use COUNTIFS()
formula with INDIRECT()
easily.因此,您可以轻松地将
COUNTIFS()
公式与INDIRECT()
。 Try below.下面试试。
=COUNTIFS(INDIRECT($A$3&"!$O$12:$O$250"),"<>Complete",INDIRECT($A$3&"!$N$12:$N$250"),"<"&TODAY())
If you need to sum values from a column then SUMIFS()
will be your friend.如果您需要对列中的值求和,那么
SUMIFS()
将是您的朋友。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.