A
Anna
Can anyone help me with this problem???
Cell A B C D
10 10
11 11
12 11
13 12
14 11 R
15 11
16 11
17 12
18 12
19 11 R
20 11
Column A is where I input data. Column C is what I'm
having trouble with. I want the formula in column C to be
the sum of the current cell on the same row in column A
and the previous 7 cells in column A, so far I have
this, "=IF((C11="r"),0,SUM(B4:B11))" and "=IF
((C12="r"),0,SUM(B5:B12))", so on and so forth. So right
now, if there is an "R" in column B, then the value
returned in column C would return 0, otherwise it would
return the sum of the current cell on the same row in
column A and the previous 7 cells in column A. But I also
want the formula in column C to include a "restart" after
the R returns the 0. For example, when the R in cell B14
is entered, the returned value for column C is 0, then the
formula in C15 should no longer calculate the sum of the
current cell on the same row in column A and the previous
7 cells in column A. It should start over at 0. It should
only go as far back as the last R entered. It should be
the sum of A14 and A15. Cell C16 should be the sum of
A14, A15 and A16, so on and so forth. I want to be able
to have a formula in column C that will go back 7 days if
no R was entered and if R is entered then it will only go
back as far as the last R entered, sort of like starting
over.
If anyone could give me any input I would really
appreciate it. Thanks so much. Please email
(e-mail address removed) if need additional information.
Thanks in advance!!!
Cell A B C D
10 10
11 11
12 11
13 12
14 11 R
15 11
16 11
17 12
18 12
19 11 R
20 11
Column A is where I input data. Column C is what I'm
having trouble with. I want the formula in column C to be
the sum of the current cell on the same row in column A
and the previous 7 cells in column A, so far I have
this, "=IF((C11="r"),0,SUM(B4:B11))" and "=IF
((C12="r"),0,SUM(B5:B12))", so on and so forth. So right
now, if there is an "R" in column B, then the value
returned in column C would return 0, otherwise it would
return the sum of the current cell on the same row in
column A and the previous 7 cells in column A. But I also
want the formula in column C to include a "restart" after
the R returns the 0. For example, when the R in cell B14
is entered, the returned value for column C is 0, then the
formula in C15 should no longer calculate the sum of the
current cell on the same row in column A and the previous
7 cells in column A. It should start over at 0. It should
only go as far back as the last R entered. It should be
the sum of A14 and A15. Cell C16 should be the sum of
A14, A15 and A16, so on and so forth. I want to be able
to have a formula in column C that will go back 7 days if
no R was entered and if R is entered then it will only go
back as far as the last R entered, sort of like starting
over.
If anyone could give me any input I would really
appreciate it. Thanks so much. Please email
(e-mail address removed) if need additional information.
Thanks in advance!!!