Hey all, my first post...
I did a quick search and read a few posts that used countif statements with multiple criteria, but didn't find what I was looking for.
Basically, what I have been trying unsuccessfully to do is this...
I have a column (Column A) which has three text strings (yes,no,maybe).
What I wanted to happen is IF A(n)=yes AND A(n+1)=yes, count the number of times A(n+2)=no. For example, if I had yes, yes, maybe, no, yes, yes, no, yes, maybe, no in one column. The count should measure 1, because there there are two repeating yes's then followed by a no. However since they are all in the same column, I am not sure how to address this. In the end, I wanted to calculate the percentage of times that repeating yes's are followed by a no. So for above example would be 50% because there were two repeating yes's, but only 1 was followed by a no.
Hope that makes sense. My effort is posted below, but at the step I was at, I just wanted to see if I could count everytime an yes was followed by a no. I had to offset it by one row to get it to work.
=COUNTIFS(A2:A129,"=yes",A3:A130,"=no")
I would love to be able to do A:A, because I would be copying this formula to different sheets which different number of rows and instead of having to update all of them manually, would be tons easier to just paste the formula once and have it update everything. However, beggers can't be choosers, anything would help!
Bookmarks