Lookup data for a range of dates

K

Kev - Radio Man

Hi, I wish to use some data in my excel 2003 that will allow me to see data
for a range of dates.
In this case I have the first column as dates going back a few years, across
the top employees names.
I want to select past week, past month, past year, or a select date range.
Then loopup an employee, and display the number of un-planed leave, sick,
domestic, Special leave etc,

Can I please get some help.

Thanks Kevin.
 
M

Mike H

One way

Column of dates in Col A startitn in A2
Names in Row 1
Start date to report on J1
End date to report on K1
Employee name L1
Code to sum M1 (E,e UL for unplanned leave, s for sick etc)
the formula
=SUMPRODUCT((A2:A40>J1)*(A2:A40<K1)*(B1:I1=L1)*(B2:I40=M1))

Mike
 

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