Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Lookup data for a range of dates

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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to lookup if value exists in a range of data? S.elhalaby Excel Worksheet Functions 3 May 5th 23 07:43 PM
Lookup Maximum between Range of Dates John Taylor Excel Discussion (Misc queries) 2 January 31st 08 10:58 PM
Vlookup using dates in the lookup range hmteacher Excel Worksheet Functions 5 October 17th 07 11:53 PM
Lookup & Return Range of Data shehasclass Excel Discussion (Misc queries) 2 April 6th 06 04:17 PM
Lookup based on range of dates dls2193 Excel Worksheet Functions 1 March 30th 06 11:21 PM


All times are GMT +1. The time now is 03:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"