View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Lookup data for a range of dates

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:A40J1)*(A2:A40<K1)*(B1:I1=L1)*(B2 :I40=M1))

Mike

"Kev - Radio Man" wrote:

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.