Hello -
Thanks for any and all help on this!
Basically, I need some help please on how many times a value in BS occurs in a sequence. And then, if the value occurs again, to know the sum of the new sequence.
(To start, for clarity: COL BS in the example below is being pulled from COL AG in my real worksheet. SO BS = AG in the code example, thx...)
OK -- I am trying to count the number of occurrences that repeat in COL BS, until the repeated value changes.
At the point that it changes, the count (of the new value) should start from 1.
If the next change in value is equal to a previous value, the count should start (again) from 1.
In the example below, you can see that for one thing:
A) BR3 should be the start of the count (1), as BS3 = BS2. I don't know why that is incorrect, please...and:
B) that the formula DOES count until the change in value, but when it changes again, back to a previous value, it picks up counting where it left off. I would like it to reset at each value change.
(Ideally, I do not need to see the individual count, but only the sum, in COL BR. But is not a problem if it is difficult to arrange.)
Thank you all for your insight - much appreciated!
Excel 2016 (Mac) 32 bit
<tbody>
[TD="align: center"]2[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]16[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]17[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]18[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]21[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]22[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]23[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]24[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]25[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]26[/TD]
[TD="align: center"]16[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]27[/TD]
[TD="align: center"]17[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]28[/TD]
[TD="align: center"]18[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]29[/TD]
[TD="align: center"]19[/TD]
[TD="align: center"]up[/TD]
</tbody>
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BR2[/TH]
[TD="align: left"]=IF([COLOR=rgb(255]A2=A1,COUNTIF(AG$2:AG2,AG2)[/COLOR])[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BS2[/TH]
[TD="align: left"]=AG2[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BR3[/TH]
[TD="align: left"]=IF([COLOR=rgb(255]A3=A2,COUNTIF(AG$2:AG3,AG3)[/COLOR])[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BS3[/TH]
[TD="align: left"]=AG3[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BR4[/TH]
[TD="align: left"]=IF([COLOR=rgb(255]A4=A3,COUNTIF(AG$2:AG4,AG4)[/COLOR])[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BS4[/TH]
[TD="align: left"]=AG4[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BR5[/TH]
[TD="align: left"]=IF([COLOR=rgb(255]A5=A4,COUNTIF(AG$2:AG5,AG5)[/COLOR])[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BS5[/TH]
[TD="align: left"]=AG5[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for any and all help on this!
Basically, I need some help please on how many times a value in BS occurs in a sequence. And then, if the value occurs again, to know the sum of the new sequence.
(To start, for clarity: COL BS in the example below is being pulled from COL AG in my real worksheet. SO BS = AG in the code example, thx...)
OK -- I am trying to count the number of occurrences that repeat in COL BS, until the repeated value changes.
At the point that it changes, the count (of the new value) should start from 1.
If the next change in value is equal to a previous value, the count should start (again) from 1.
In the example below, you can see that for one thing:
A) BR3 should be the start of the count (1), as BS3 = BS2. I don't know why that is incorrect, please...and:
B) that the formula DOES count until the change in value, but when it changes again, back to a previous value, it picks up counting where it left off. I would like it to reset at each value change.
(Ideally, I do not need to see the individual count, but only the sum, in COL BR. But is not a problem if it is difficult to arrange.)
Thank you all for your insight - much appreciated!
Excel 2016 (Mac) 32 bit
BR | BS | |
---|---|---|
<tbody>
[TD="align: center"]2[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]FALSE[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]16[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]17[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]18[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]19[/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]21[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]22[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]23[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]down[/TD]
[TD="align: center"]24[/TD]
[TD="align: center"]14[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]25[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]26[/TD]
[TD="align: center"]16[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]27[/TD]
[TD="align: center"]17[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]28[/TD]
[TD="align: center"]18[/TD]
[TD="align: center"]up[/TD]
[TD="align: center"]29[/TD]
[TD="align: center"]19[/TD]
[TD="align: center"]up[/TD]
</tbody>
Main
[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BR2[/TH]
[TD="align: left"]=IF([COLOR=rgb(255]A2=A1,COUNTIF(AG$2:AG2,AG2)[/COLOR])[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BS2[/TH]
[TD="align: left"]=AG2[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BR3[/TH]
[TD="align: left"]=IF([COLOR=rgb(255]A3=A2,COUNTIF(AG$2:AG3,AG3)[/COLOR])[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BS3[/TH]
[TD="align: left"]=AG3[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BR4[/TH]
[TD="align: left"]=IF([COLOR=rgb(255]A4=A3,COUNTIF(AG$2:AG4,AG4)[/COLOR])[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BS4[/TH]
[TD="align: left"]=AG4[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BR5[/TH]
[TD="align: left"]=IF([COLOR=rgb(255]A5=A4,COUNTIF(AG$2:AG5,AG5)[/COLOR])[/TD]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E0E0F0]#E0E0F0[/URL] "]BS5[/TH]
[TD="align: left"]=AG5[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]