Calculating Average Time Between Rows in a Range of Non-Consecutive Rows

aferoz

New Member
Joined
Sep 23, 2014
Messages
1
This may be a simple question, but I've been having trouble getting to the correct result. I have a spreadsheet of production data. I've created a macro that will loop through a list of workers and filter based on the date and the worker. I then calculate some summary statistics for each worker. One of the columns, I'm working with is the time that each job was started. So for example:


Confirmation time
8:39:11 AM
8:52:04 AM
8:52:29 AM
9:08:48 AM
9:09:29 AM
9:10:03 AM
9:11:09 AM
9:20:51 AM




I want to calculate the average time between all rows, aka consecutive orders. I was thinking this may be just a simple standard deviation, but the results don't seem right...
The main problem I'm running into is that these rows are not consecutive since the spreadsheet was filtered.


Any guidance or suggestions would be much appreciated.
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,211
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Copy the filtered data to another sheet. In the example below that's Sheet4.
Excel Workbook
AB
1Confirmation timeDiff in Minutes
28:39:11 AM
38:52:04 AM12.88
48:52:29 AM0.42
59:08:48 AM16.32
69:09:29 AM0.68
79:10:03 AM0.57
89:11:09 AM1.10
99:20:51 AM9.70
10Average in minutes5.95
Sheet4
 

Watch MrExcel Video

Forum statistics

Threads
1,109,040
Messages
5,526,409
Members
409,701
Latest member
nitmani

This Week's Hot Topics

Top