For your first requirement, you would need to count how many times the 'state' of the cell changes.
something like:
Embed this in a loop that starts at row 7 down to the last line of your spreadsheet.![]()
Select Case Current_State Case "ON" If New_State <> Current_State then Current_State = New_State End IF Case "OFF" If New_State = "ON" then On_Count = On_Count + 1 Current_State = New_State End If End Select
As for your second request - I don't have the time at the mo - Sorry!
Bookmarks