I am working on making a counter for a column.
The values in that column are either 0(off) or 1(on).
I want to know the count of how many times the switch goees from off to on(0 to1).
I have tried countf, sumproduct but none have worked out.
I then found a manual solution & used =IF(Cell2=0,IF(Cell1=1,1,0),0) in a New column next to it.
Then did a sum of the new column.
Can someone help work out a macro on this?
8EDIT* I also tried recording a macro but it wasn't working properly snce I could not get the same last row used in different files.![]()
Bookmarks