A
ajhubble
OK, from reading through the previous threads on countif and sumproduct
I have this question: I'm trying to count the number of rows which hav
3 matching criteria from 2 columns. My formula needs to count th
number of rows in column C:C which match either "Test1" or "Test2" an
to count only if column L:L has a "Y".
This expression works:
=SUMPRODUCT(--(Sheet1!C1:C165="Test1"), --(Sheet1!L1:L165="Y"))
But this expression doesn't (#VALUE):
=SUMPRODUCT(OR(--(Sheet1!C1:C165="Test1"),--(Sheet1!C1:C165="Test2")),--(Sheet1!L1:L165="Y"))
Neither does this (#VALUE):
=SUMPRODUCT(--OR((Sheet1!C1:C165="Test1"),(Sheet1!C1:C165="Test2")),--(Sheet1!L1:L165="Y"))
How do I specify more than 1 possible match for the any particula
column?
And second question: how do I specify the function to search the entir
used range of the column? It can't seem to take "C:C" as a valid colum
(despite it being able to work for nearly every other workshee
function). I suppose I can do "C1:C65000", but it does seem inelegan
and I don't want Excel calculating all the way down there if it doesn'
need to. Excel should know how far down the spreadsheet goes and shoul
only calculate down to the last used row.
Suggestions? Thanks
I have this question: I'm trying to count the number of rows which hav
3 matching criteria from 2 columns. My formula needs to count th
number of rows in column C:C which match either "Test1" or "Test2" an
to count only if column L:L has a "Y".
This expression works:
=SUMPRODUCT(--(Sheet1!C1:C165="Test1"), --(Sheet1!L1:L165="Y"))
But this expression doesn't (#VALUE):
=SUMPRODUCT(OR(--(Sheet1!C1:C165="Test1"),--(Sheet1!C1:C165="Test2")),--(Sheet1!L1:L165="Y"))
Neither does this (#VALUE):
=SUMPRODUCT(--OR((Sheet1!C1:C165="Test1"),(Sheet1!C1:C165="Test2")),--(Sheet1!L1:L165="Y"))
How do I specify more than 1 possible match for the any particula
column?
And second question: how do I specify the function to search the entir
used range of the column? It can't seem to take "C:C" as a valid colum
(despite it being able to work for nearly every other workshee
function). I suppose I can do "C1:C65000", but it does seem inelegan
and I don't want Excel calculating all the way down there if it doesn'
need to. Excel should know how far down the spreadsheet goes and shoul
only calculate down to the last used row.
Suggestions? Thanks