Hi,
I need to count how many times a rig occurs in my spreadsheet in consecutive order,
I currently have a countif equation that works for this.
I wanted to add an argument so the function will not count if there is a start value present in column B BUT I also need the function to start the count over for this rig.
I have shown an example of what I am looking for below.
Thanks
[TABLE="width: 462"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Rig[/TD]
[TD]Start[/TD]
[TD]Countif[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5/1/2015[/TD]
[TD]=COUNTIF($A$2:A2,A2)[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
Example of what I am looking for
[TABLE="width: 462"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Rig[/TD]
[TD]Start[/TD]
[TD]Countif[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5/1/2015[/TD]
[TD]RR[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
I need to count how many times a rig occurs in my spreadsheet in consecutive order,
I currently have a countif equation that works for this.
I wanted to add an argument so the function will not count if there is a start value present in column B BUT I also need the function to start the count over for this rig.
I have shown an example of what I am looking for below.
Thanks
[TABLE="width: 462"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Rig[/TD]
[TD]Start[/TD]
[TD]Countif[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5/1/2015[/TD]
[TD]=COUNTIF($A$2:A2,A2)[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD][/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD][/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]D[/TD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