AudyAnalyst
New Member
- Joined
- Nov 24, 2021
- Messages
- 20
- Office Version
- 365
- Platform
- Windows
Can anyone help create a formula showing the average length of time taken for each employee? For Example, "EMP2000" took 5/22 (1), 5/19 (1), 5/11 (1), & 3/3-3/1 (3), so, "EMP2000" average time off was (6/4) =1.5 days. The formula needs to be mindful of both the employee ID and the date Taken being sequential/consecutive.
Book3 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Employee ID | Time Off Date | Approved | ||
2 | EMP2000 | 5/22/2023 | 8 | ||
3 | EMP2000 | 5/19/2023 | 8 | ||
4 | EMP2000 | 5/11/2023 | 8 | ||
5 | EMP2000 | 3/3/2023 | 8 | ||
6 | EMP2000 | 3/2/2023 | 8 | ||
7 | EMP2000 | 3/1/2023 | 8 | ||
8 | EMP2007 | 2/1/2023 | 4 | ||
9 | EMP2007 | 5/26/2023 | 8 | ||
10 | EMP2009 | 4/6/2023 | 8 | ||
11 | EMP2009 | 5/19/2023 | 8 | ||
12 | EMP2009 | 5/20/2023 | 8 | ||
13 | EMP2009 | 3/10/2023 | 8 | ||
14 | EMP2009 | 3/9/2023 | 8 | ||
15 | EMP2009 | 3/8/2023 | 4 | ||
16 | EMP2009 | 3/1/2023 | 4 | ||
17 | EMP2009 | 1/11/2023 | 4 | ||
18 | EMP2016 | 1/5/2023 | 4 | ||
19 | EMP2016 | 5/12/2023 | 8 | ||
20 | EMP2016 | 5/11/2023 | 8 | ||
21 | EMP2016 | 4/14/2023 | 8 | ||
22 | EMP2016 | 4/15/2023 | 8 | ||
23 | EMP2070 | 1/3/2023 | 8 | ||
24 | EMP2070 | 5/17/2023 | 8 | ||
25 | EMP2070 | 2/10/2023 | 8 | ||
26 | EMP2070 | 2/9/2023 | 5.25 | ||
27 | EMP2070 | 2/8/2023 | 8 | ||
28 | EMP2070 | 2/7/2023 | 8 | ||
29 | EMP2070 | 2/6/2023 | 8 | ||
Sheet1 |