I'm not even sure how to ask this. I am creating a calculator for a loyalty points program. According to the program rules, a company gets a certain amount of points for every year it participates in the program, but loses two points each time it does not.
I used the formula above within another formula and it works great. Every time a zero shows up in a company's row, that company gets dinged with -2 points. All good.
However, the system goes back ten years and the idea is that if theacompany participated for eight years, then skipped year nine, they lose points in that year. But the way I have my system set up, using the formula above, a new participant that starts this year starts out with -18 points. That's not what we want.
So, I'm wondering, how can I get a formula like below to only start at the first cell that has a value:
(=COUNTIF(C2:L2,0)
I hope this makes sense.
[TABLE="width: 626"]
<tbody>[TR]
[TD]Company Name[/TD]
[TD]2009[/TD]
[TD]2010[/TD]
[TD]2011[/TD]
[TD]2012[/TD]
[TD]2013[/TD]
[TD]2014[/TD]
[TD]2015[/TD]
[TD]2016[/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[TD]Missed[/TD]
[TD]Points[/TD]
[/TR]
[TR]
[TD="align: left"]A Company[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]-8[/TD]
[/TR]
[TR]
[TD="align: left"]B Company[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: left"]C Company[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
I used the formula above within another formula and it works great. Every time a zero shows up in a company's row, that company gets dinged with -2 points. All good.
However, the system goes back ten years and the idea is that if theacompany participated for eight years, then skipped year nine, they lose points in that year. But the way I have my system set up, using the formula above, a new participant that starts this year starts out with -18 points. That's not what we want.
So, I'm wondering, how can I get a formula like below to only start at the first cell that has a value:
(=COUNTIF(C2:L2,0)
I hope this makes sense.
[TABLE="width: 626"]
<tbody>[TR]
[TD]Company Name[/TD]
[TD]2009[/TD]
[TD]2010[/TD]
[TD]2011[/TD]
[TD]2012[/TD]
[TD]2013[/TD]
[TD]2014[/TD]
[TD]2015[/TD]
[TD]2016[/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[TD]Missed[/TD]
[TD]Points[/TD]
[/TR]
[TR]
[TD="align: left"]A Company[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]-8[/TD]
[/TR]
[TR]
[TD="align: left"]B Company[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: left"]C Company[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]