I am trying to use a nested IF statement but I can't get it to work.
In cell H34 (running total for 2013 = 0):
If the running total is 1,2,3 or 4 I want it to ignore the previous amount and then start over with a new count of amount.
Ex.
If the amount of 2013 and 2014 is below 50 I want to have a 0 in running total.
If the amount of 2013 and 2014 is higher then 50-100 I want to have a 1 in running total.
if the amount of 2013 and 2014 is higher then 101-140 I want to have a 2 in running total.
If the amount of 2013 and 2014 is higher then 141 to 210 I want to have a 3 in running total. Anything above will be a 4.
But if the previous running total was 1,2,3 or 4 I want to reset the count. So if running total for 2015 was 3, I want the count for 2016 to ignore the previous amount. So that the running total doesn't say 2,3,4 etc.
I am not sure how to make it work?
Code:
[TABLE="width: 530"]
<tbody>[TR]
[TD]Year[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]2013[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]2015[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]2017[/TD]
[/TR]
[TR]
[TD]Amount[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]54[/TD]
[TD="align: right"]67[/TD]
[TD="align: right"]88[/TD]
[/TR]
[TR]
[TD][B]Running total[/B][/TD]
[TD][/TD]
[TD="align: right"][B]0[/B][/TD]
[TD="align: right"][B]0[/B][/TD]
[TD="align: right"][B]2[/B][/TD]
[TD="align: right"][B]3[/B][/TD]
[TD="align: right"][B]4[/B][/TD]
[/TR]
</tbody>[/TABLE]
In cell H34 (running total for 2013 = 0):
Code:
=IF(G34<>0;0;
IF(G33+H33>50;1;
IF(H33+G33>70;2;
IF(H33+G33>150;3;
IF(H33+G33>210;4;0)))))
If the running total is 1,2,3 or 4 I want it to ignore the previous amount and then start over with a new count of amount.
Code:
[TABLE="width: 530"]
<tbody>[TR]
[TD]Year[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]2013[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]2015[/TD]
[TD="align: right"]2016[/TD]
[TD="align: right"]2017[/TD]
[/TR]
[TR]
[TD]Amount[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]34[/TD]
[TD="align: right"]54[/TD]
[TD="align: right"]67[/TD]
[TD="align: right"]88[/TD]
[/TR]
[TR]
[TD][B]Running total[/B][/TD]
[TD][/TD]
[TD="align: right"][B]0[/B][/TD]
[TD="align: right"][B]0[/B][/TD]
[TD="align: right"][B]1[/B][/TD]
[TD="align: right"][B]0[/B][/TD]
[TD="align: right"][B]2[/B][/TD]
[/TR]
</tbody>[/TABLE]
Ex.
If the amount of 2013 and 2014 is below 50 I want to have a 0 in running total.
If the amount of 2013 and 2014 is higher then 50-100 I want to have a 1 in running total.
if the amount of 2013 and 2014 is higher then 101-140 I want to have a 2 in running total.
If the amount of 2013 and 2014 is higher then 141 to 210 I want to have a 3 in running total. Anything above will be a 4.
But if the previous running total was 1,2,3 or 4 I want to reset the count. So if running total for 2015 was 3, I want the count for 2016 to ignore the previous amount. So that the running total doesn't say 2,3,4 etc.
I am not sure how to make it work?