How to embed calculation into COUNTIF function in Excel?
-
09-02-2021 - |
Question
My data looks like below:
A B
1 0
1 0
0 1
0 1
How can I count the number that in the same row column A are greater than column B without adding another column which is the subtracted value between column A and column B?
The output of above example should output 2.
Solution
=SUMPRODUCT((1=1)*(A1:A4>B1:B4))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow