S
Soe
here is the formula,
=sumproduct(1*(A2:A5=A1))
here is the data
A
1 a
2 b
3 a
4 b
5 a
this formula counts (in the range A2:A5) those equal to value in A1.
However, if A1="something", then I like to count all regardless of their
values. Meaning, if A1="a", then result = 2, if A1="something", then i need
result to be 4.
Pls take note i need to keep sumproduct formula as there are long parameters
in the function.
=sumproduct(1*(A2:A5=A1))
here is the data
A
1 a
2 b
3 a
4 b
5 a
this formula counts (in the range A2:A5) those equal to value in A1.
However, if A1="something", then I like to count all regardless of their
values. Meaning, if A1="a", then result = 2, if A1="something", then i need
result to be 4.
Pls take note i need to keep sumproduct formula as there are long parameters
in the function.