I have a set of data that goes back a few years and updates daily, causing the date and data to push down one row everyday. I am trying to track how many days in a row the data is higher or lower. I used a IF formula with a binary 1,0 outcome to track if the data is higher or lower than the day before (Column C below). Now I need to figure out how to track how many consecutive days the data moves up or down, as the data moves through time (Column D below). I think I need to use =Count(SUMIF()) in some way but am not sure. For instance, in the below example the answer would obviously be 2, for the last two days when the yield went up... but how do I keep track of this when everyday the data is automatically pushed down one row and new data is added? Any ideas?
<tbody>
</tbody>
Thanks in advance!
Date | Yield | IF(B2>B3,1,0) | ??? |
=Now | 0.390785 | 1 | |
6/2/14 | 0.389 | 1 | |
5/30/14 | 0.375 | 0 | |
5/29/14 | 0.377 | 1 | |
5/28/14 | 0.367 | 1 | |
5/27/14 | 0.346 | 1 | |
5/26/14 | 0.344 | 0 | |
5/25/14 | 0.345 | .... | |
.... and so on.... | .... | ..... |
<tbody>
</tbody>
Thanks in advance!