D
dschneiderch
HI,
I'm trying to add up cells in a column based on the value of the cell in the previous row of another column.
So, BA is a column of values for days april 1 to april 30.
I want to sum any value of BA where AR is less than or equal to AT of the previous row. The column AR is column BB*0.2 which I created after getting frustrated with the formula not working in hopes of simplifying
I've tried:
=SUMIFS($BA$5:$BA$34,$AT$4:$AT$33,">"&0.2*$BB$5:$BB$34
=SUMIFS($BA$5:$BA$34,$AR$5:$AR$34,"<="&$AT$4:$AT$33)
=SUMPRODUCT(AT4:AT33>=AR5:AR34,BA5:BA34)
I also tried a countif just to trouble shoot and it gives me 30 (instead of 10)
=COUNTIF(AR5:AR34,"<="&$AT$4:$AT$33)
whats wrong?
Thanks in advance
ds
I'm trying to add up cells in a column based on the value of the cell in the previous row of another column.
So, BA is a column of values for days april 1 to april 30.
I want to sum any value of BA where AR is less than or equal to AT of the previous row. The column AR is column BB*0.2 which I created after getting frustrated with the formula not working in hopes of simplifying
I've tried:
=SUMIFS($BA$5:$BA$34,$AT$4:$AT$33,">"&0.2*$BB$5:$BB$34
=SUMIFS($BA$5:$BA$34,$AR$5:$AR$34,"<="&$AT$4:$AT$33)
=SUMPRODUCT(AT4:AT33>=AR5:AR34,BA5:BA34)
I also tried a countif just to trouble shoot and it gives me 30 (instead of 10)
=COUNTIF(AR5:AR34,"<="&$AT$4:$AT$33)
whats wrong?
Thanks in advance
ds