MaDroskilo
New Member
- Joined
- Dec 13, 2018
- Messages
- 1
Hello everyone,
What I am trying to do is in a single column, count all the non-zero elements that appear in every 5th row. I tried to use the COUNTIFS function. However, the second criterion (selecting every 5th row) does not seem to work. Even when I use COUNTIF() (see below) with this single criterion, 0 is always returned.
As an example, if I would use this function --> COUNTIF(A50:A59,MOD(ROW(A50:A59),5)=0) I would expect 2 as an output. What am I missing? Or is there a more elaborate way to handle this?
Thank you in advance!
What I am trying to do is in a single column, count all the non-zero elements that appear in every 5th row. I tried to use the COUNTIFS function. However, the second criterion (selecting every 5th row) does not seem to work. Even when I use COUNTIF() (see below) with this single criterion, 0 is always returned.
As an example, if I would use this function --> COUNTIF(A50:A59,MOD(ROW(A50:A59),5)=0) I would expect 2 as an output. What am I missing? Or is there a more elaborate way to handle this?
Thank you in advance!