Hi .
I am wanting a formula that will count the number of consecutive sames values in a column that are together but not all of them in the column.
I have 365 rows and i want to be able to insert the formula in B1 and drag down to B365 so that the Value in B wil update as and when A changes.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bob[/TD]
[TD]3[/TD]
[TD]Leave[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]James[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]James[/TD]
[TD]2[/TD]
[TD]Leave[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Bob[/TD]
[TD]4[/TD]
[TD]Leave[/TD]
[/TR]
</tbody>[/TABLE]
The issue i am having is the not including the top 3 "Bob"'s with the bottom 4 Bob's
=IF(C1<>"",COUNTIF($A$1:A1,A1),"")
Drags down to :
=IF(C9<>"",COUNTIF($A$1:A9,A9),"")
With this my B9 number is 7
Thanks in advance.
P
I am wanting a formula that will count the number of consecutive sames values in a column that are together but not all of them in the column.
I have 365 rows and i want to be able to insert the formula in B1 and drag down to B365 so that the Value in B wil update as and when A changes.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Bob[/TD]
[TD]3[/TD]
[TD]Leave[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]James[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]James[/TD]
[TD]2[/TD]
[TD]Leave[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Bob[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Bob[/TD]
[TD]4[/TD]
[TD]Leave[/TD]
[/TR]
</tbody>[/TABLE]
The issue i am having is the not including the top 3 "Bob"'s with the bottom 4 Bob's
=IF(C1<>"",COUNTIF($A$1:A1,A1),"")
Drags down to :
=IF(C9<>"",COUNTIF($A$1:A9,A9),"")
With this my B9 number is 7
Thanks in advance.
P