alm395
New Member
- Joined
- Apr 23, 2018
- Messages
- 39
- Office Version
- 365
- Platform
- Windows
I have a table with employees down column A and dates going across (3/20/20 - 4/4/21). Each date is tracked with that person's daily status. I already have a section that counts the totals of each status type, but am now looking to find the min, max, and avg of consecutive dates with the specific status of "Out Of Office." Our schedule also includes weekends, so their status may or may not be filled in during those two days.
Example:
PERSON 1: MIN=1 / MAX=3 / AVG=2
PERSON 3: MIN=4 / MAX=4 / AVG=4
PERSON 6: Even though the weekends are left blank, I would like the outcome for consecutive days to be 9.
PERSON 8: MIN=1 / MAX=2 / AVG=1.67
Please help! I have about 1100 employees we are trying to gather this information on before the end of our fiscal year.
Thank you in advance!!!
Example:
PERSON 1: MIN=1 / MAX=3 / AVG=2
PERSON 3: MIN=4 / MAX=4 / AVG=4
PERSON 6: Even though the weekends are left blank, I would like the outcome for consecutive days to be 9.
PERSON 8: MIN=1 / MAX=2 / AVG=1.67
Please help! I have about 1100 employees we are trying to gather this information on before the end of our fiscal year.
Thank you in advance!!!
Min Max Avg Days.xlsx | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | |||
1 | Out of Office | ||||||||||||||||||
2 | Full Name | 12/28/2020 | 12/29/2020 | 12/30/2020 | 12/31/2020 | 1/1/2021 | 1/2/2021 | 1/3/2021 | 1/4/2021 | 1/5/2021 | 1/6/2021 | 1/7/2021 | 1/8/2021 | TOTAL OFF | MIN OFF | MAX OFF | AVG OFF | ||
3 | PERSON 1 | Active | Out Of Office | Active | Active | 09U | Day Off | Day Off | Active | Active | Out Of Office | Out Of Office | Out Of Office | 4 | |||||
4 | PERSON 2 | 13S | Active | Active | Active | Active | Day Off | Day Off | Active | Active | Active | Active | Active | 0 | |||||
5 | PERSON 3 | Active | Out Of Office | Out Of Office | Out Of Office | Out Of Office | Active | Active | Active | Active | Active | 4 | |||||||
6 | PERSON 4 | Active | Active | Active | Active | Active | Day Off | Day Off | Active | Active | Active | Active | Active | 0 | |||||
7 | PERSON 5 | Out Of Office | Out Of Office | Active | Active | Active | Day Off | Day Off | Active | Active | Active | Out Of Office | Out Of Office | 4 | |||||
8 | PERSON 6 | Active | Out Of Office | Out Of Office | Out Of Office | Out Of Office | Out Of Office | Out Of Office | Out Of Office | Out Of Office | Out Of Office | 9 | |||||||
9 | PERSON 7 | Active | 13S | Active | 13S | 13S | Day Off | Day Off | Active | Active | Active | Active | Active | 0 | |||||
10 | PERSON 8 | 13S | 09U | Out Of Office | Active | Out Of Office | Day Off | Day Off | Out Of Office | Active | Out Of Office | Out Of Office | Active | 5 | |||||
11 | PERSON 9 | 13S | 13S | 13S | Active | Active | Day Off | Day Off | Active | Active | WFH | WFH | WFH | 0 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
N3:N11 | N3 | =COUNTIF(B3:M3,$N$1) |