=sumiif?

MarcJohn

New Member
Joined
Jun 2, 2014
Messages
28
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?

DateYieldIF(B2>B3,1,0)???
=Now0.3907851
6/2/140.3891
5/30/140.3750
5/29/140.3771
5/28/140.3671
5/27/140.3461
5/26/140.3440
5/25/140.345....
.... and so on.............

<tbody>
</tbody>


Thanks in advance!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Unless you actually need them to be 1's and 0's. You can use TRUE/FALSE instead, and then your formula in
C2
=B2>B3

Copy down
Formula in D2:
=MATCH(FALSE,C:C,0)-2

Excel Workbook
ABCD
1DateYield
26/3/20140.390785TRUE2
36/2/20140.389TRUE
45/30/20140.375FALSE
55/29/20140.377TRUE
65/28/20140.367TRUE
75/27/20140.346TRUE
85/26/20140.344TRUE
Sheet1
 
Upvote 0
SO this tracks up days but gives me 0's when there are down days. Would I just change it to B2<B3 for your above example if I want to track down days?
 
Upvote 0

Forum statistics

Threads
1,216,228
Messages
6,129,614
Members
449,520
Latest member
TBFrieds

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top