Hey guys

I basicly have a column of 1s and 0s(on and off), and i need to know the total number of times the machine starts, including the first time.

The machine starts every time the data switches from a 0(or group of 0s) to a 1.

How would i go about writing an equation(probly containing the IF command) to count these iterations?

Cheers.