Forum Discussion
jspry
May 22, 2019Copper Contributor
total and subtotal time
I have the need to calculate the accumulating time and then the subtotal when a value in another column changes. My example would be Column A is date/time; Column B contains one of the following "Sta...
SergeiBaklan
May 22, 2019Diamond Contributor
jspry , for the model like this
cumulative time could be calculated as
=IF(($B2="Start")*NOT( (COUNTIF($B1:B$2,"Stop")<>COUNTIF($B1:B$2,"Start"))*(COUNTIF($B1:B$2,"Start")>1)*($B2="Start") ),0,$A2-N($A1)+N($C1))
and Start without previous Stop highlighted with conditional formatting rule with formula
=(COUNTIF($B1:B$2,"Stop")<>COUNTIF($B1:B$2,"Start"))*(COUNTIF($B1:B$2,"Start")>1)*($B2="Start")
applied to the column B