Hi,
It would be much better if you show some sample data with expected results along with your description.
Don't know if this is what you mean:
<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]7[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]1[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]8[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]1[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]10[/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]11[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]11[/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]6[/TD]
</tbody>
Sheet620
[TABLE="width: 85%"]
<tbody>[TR]
[TD]
Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B1[/TH]
[TD="align: left"]=IF(
A1="R",1,IF(A1=0,MAX(A$1:A1)+2,A1+1))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
This looks better - but i am still getting mixed results with the zeros
my column looks like this:
[TABLE="width: 190"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]data[/TD]
[TD]expected results[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]R[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
what i am actually getting is this:
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]data[/TD]
[TD="width: 64"] actual[/TD]
[TD="width: 64"] [/TD]
[/TR]
[TR]
[TD="class: xl69"]2[/TD]
[TD="class: xl70"]3[/TD]
[TD]IF(K19="R",1,IF(K19=0,MAX
(K$19:K19)+2,K19+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]0[/TD]
[TD="class: xl70"]4[/TD]
[TD]IF(K20="R",1,IF(K20=0,MAX
(K$19:K20)+2,K20+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]4[/TD]
[TD="class: xl70"]5[/TD]
[TD]IF(K21="R",1,IF(K21=0,MAX
(K$19:K21)+2,K21+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]5[/TD]
[TD="class: xl70"]6[/TD]
[TD]IF(K22="R",1,IF(K22=0,MAX
(K$19:K22)+2,K22+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]1[/TD]
[TD="class: xl70"]2[/TD]
[TD]IF(K23="R",1,IF(K23=0,MAX
(K$19:K23)+2,K23+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]3[/TD]
[TD="class: xl70"]4[/TD]
[TD]IF(K24="R",1,IF(K24=0,MAX
(K$19:K24)+2,K24+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]0[/TD]
[TD="class: xl70"]7[/TD]
[TD]IF(K25="R",1,IF(K25=0,MAX
(K$19:K25)+2,K25+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]0[/TD]
[TD="class: xl70"]7[/TD]
[TD]IF(K26="R",1,IF(K26=0,MAX
(K$19:K26)+2,K26+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]0[/TD]
[TD="class: xl70"]7[/TD]
[TD]IF(K27="R",1,IF(K27=0,MAX
(K$19:K27)+2,K27+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]0[/TD]
[TD="class: xl70"]7[/TD]
[TD]IF(K28="R",1,IF(K28=0,MAX
(K$19:K28)+2,K28+1))[/TD]
[/TR]
[TR]
[TD="class: xl69"]R[/TD]
[TD="class: xl70"]1[/TD]
[TD]IF(K29="R",1,IF(K29=0,MAX
(K$19:K29)+2,K29+1))[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col width="64" span="2" style="width:48pt"></colgroup><tbody>[TR]
[TD="class: xl69"][/TD]
[TD="class: xl70"]
[/TD]
[/TR]
</tbody>[/TABLE]
so i have a zero returning a 4 & the other zeros returning a 7
I notice the data range is increasing with each row down? (In bold) Should this be the full data range for each formula or should it be one range for one cell?