Hello,
I am a new VBA user and I am trying to write a code to count values in a column. My data is dynamic and updates on a 24hr refresh and the data can be formatted slightly different each time it is updated. Typically the format of the values follows a pattern like this:
Where each alternating row is a blank. However, sometimes the data will have extra blank rows between the next occupied cell. (see below)
The values are always ascending, but each day at midnight the value resets to 1 and could potentially reach the same value that was already seen in the previous 24hrs. So a simple unique value formula will not work.
Eg. Aug 8, 2020 3:00AM: 110
Aug 9, 2020 1:15AM: 110
Basically what I need is a way to count every time the value increases while skipping over the blank cells (in pic 2 total count would be 3, exclude the 2nd 299).
I have a code that puts a value of 1 beside the cells with an increasing value and excludes any repetitive numbers but it does not work when there are extra blank cells in the data. Here is the code. (PiTag starts recording infomation in row 12)
I am a new VBA user and I am trying to write a code to count values in a column. My data is dynamic and updates on a 24hr refresh and the data can be formatted slightly different each time it is updated. Typically the format of the values follows a pattern like this:
Where each alternating row is a blank. However, sometimes the data will have extra blank rows between the next occupied cell. (see below)
The values are always ascending, but each day at midnight the value resets to 1 and could potentially reach the same value that was already seen in the previous 24hrs. So a simple unique value formula will not work.
Eg. Aug 8, 2020 3:00AM: 110
Aug 9, 2020 1:15AM: 110
Basically what I need is a way to count every time the value increases while skipping over the blank cells (in pic 2 total count would be 3, exclude the 2nd 299).
I have a code that puts a value of 1 beside the cells with an increasing value and excludes any repetitive numbers but it does not work when there are extra blank cells in the data. Here is the code. (PiTag starts recording infomation in row 12)