count number of weeks missing for each individual in a database

  • Thread starter Thread starter pumpkin
  • Start date Start date
P

pumpkin

Hi,

I need to measure attendace for the employees. I have a list of weeks worked
(eg. below) for each employee (numbered from 1-54) and I need to work out the
weeks that have not been worked and whether they are consecutive or not.

Please help :-)

bob jack
3 2
4 13
8 14
9 15
10 16
11 17
 
The number of missing weeks is =54-COUNT(A2:A55)
I will let someone else answer the non-consecutive part. The easiest way
would be with a helper column, but probably someone can think of a more
direct way.
 
Thanks ashish, You seem to be a whizz at this :-)
I need to count the consecutive weeks together...i.e. Bob was off work in
weeks 1 and 2 and also 5,6 and 7 so that woud be 2 weeks and 3 weeks
consecutively taken off...do you know of a way to do this?

pumpkin
 
Make sure that you've got a row with zeroes (or blanks) at the beginning of
the list, before week 1, then use =IF(A3-A2<>1,A3-1-A2,"") and copy down, to
show the number of weeks absent in each absence period.
 
Back
Top