count number of weeks missing for each individual in a database

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
 
D

David Biddulph

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.
 
P

pumpkin

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
 
A

Ashish Mathur

Hi,

Not celar about your question. Please explain the following:

1. The answer for Bob;
2. Logic for 1 above

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
D

David Biddulph

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top