RFLundgren
New Member
- Joined
- Mar 28, 2022
- Messages
- 7
- Office Version
- 365
- Platform
- Windows
Hi all
I have a sheet that contains multiple columns, with one being time based and another showing status.
It has to loop through the data as the number of rows will change each month. Columns remain static.
I need to get the average of the time based cells in the column where status = Closed.
So far in my searching I have come across the code below, which works for the most part except for the error 6 overflow I am getting.
I have tried declaring as an integer and as a string, however get the same error in either case.
Example sheet
Example code
Once I have the average, I then need to divide it by 8 and place it into a cell on a different sheet.
Any help / suggestions, or even whole new code, would be most appreciated.
I have a sheet that contains multiple columns, with one being time based and another showing status.
It has to loop through the data as the number of rows will change each month. Columns remain static.
I need to get the average of the time based cells in the column where status = Closed.
So far in my searching I have come across the code below, which works for the most part except for the error 6 overflow I am getting.
I have tried declaring as an integer and as a string, however get the same error in either case.
Example sheet
Example code
Once I have the average, I then need to divide it by 8 and place it into a cell on a different sheet.
Any help / suggestions, or even whole new code, would be most appreciated.