Solution to Count Before Change
Solution to count before change at: http://excelexperts.com/data-counting
I guess that you want to count number of occurences of "Yes" and "No" in a block of consequtive occurences (i.e. before it changes from "Yes" to "No" or from "No" to "Yes"), right?
Having your data in column A, enter 1 in B2 and this formula in B3: =IF(A3=A2,B2+1,1).
Thus, when "Yes" turns into "No" or vice versa, counter resets to 1. If it is same as the row above, it increments counter to + 1.
Example file attached.
Please, let us know if this is what you need.
Attachment | Size |
---|---|
CountBeforeChange.xlsx | 8.51 KB |
»
- Almir's blog
- Login or register to post comments
- 3107 reads
Recent comments
5 years 36 weeks ago
6 years 22 weeks ago
6 years 34 weeks ago
6 years 37 weeks ago
6 years 38 weeks ago
6 years 43 weeks ago
6 years 52 weeks ago
7 years 2 days ago
7 years 3 days ago
7 years 3 days ago