Hello,
I am trying to figure out a formula which, based on value, will restart numbering. I am using this formula, but it does not work after the first run, because it is always referencing the same cell with the OFFSET formula:
=IF(($A$22-(D21*$A$21))>0,1,IF($A$23-((OFFSET(D21,0,(COLUMN($D$21)-COLUMN(D$21)))*$A$21))>0,2,""))
The values in the celss are as follows:
A21=1
A22=10
A23=7
D21:T21 = 1,2,3,4,5,6,7,8,9,10,11,12,.....
Can you please suggest a formula where I can restart the numbering when it hits zero
Thank you
I am trying to figure out a formula which, based on value, will restart numbering. I am using this formula, but it does not work after the first run, because it is always referencing the same cell with the OFFSET formula:
=IF(($A$22-(D21*$A$21))>0,1,IF($A$23-((OFFSET(D21,0,(COLUMN($D$21)-COLUMN(D$21)))*$A$21))>0,2,""))
The values in the celss are as follows:
A21=1
A22=10
A23=7
D21:T21 = 1,2,3,4,5,6,7,8,9,10,11,12,.....
Can you please suggest a formula where I can restart the numbering when it hits zero
Thank you