Number of days in a running period

S

splodgey

Hi does anyone know if there is a way to calculate how many days a person has
taken off over a running tweleve month period? For example If a person was
off:

2 Days May 06
3 Days December 06
10 April 07

In May the running total would be 15 days, however at the end of June the
total would only be 13.

Any ideas would be much appreciated
 
B

Bob Phillips

=SUMPRODUCT(--(A1:A20>=DATE(YEAR(H1)-1,MONTH(H1),1)),B1:B20)

where H1 is the date you want to compare against, it can be any date in the
month.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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