#1   Report Post  
Posted to microsoft.public.excel.misc
KevMo
 
Posts: n/a
Default Date Range

I'm setting up a spreadsheet that includes arrival and departure dates for
about 500 people. I'm trying to set it up so that I can figure out who will
be present on a given day. For example All people who will be present on
March 5. That range would include people arriving January 15 and departing on
March 6, but also people arriving March 5 and departing on April 10.

Any suggestions on setting up a function and sort command combination that
would allow me to do this.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Date Range

Hi

With Arrivals in column A, Departures in column B.
In cell C2 enter your required Date e.g. 06/03/2006
In cell D2
=SUMPRODUCT(--($A$2:$A$100<=$C$2),--($B$2:$B$100=$C$2))

Note that this includes the = 06/03/2006 in both parts, as people
leaving or arriving on that day will be present for some part of it.
Adjust the formula as required if you don't want this.

--
Regards

Roger Govier


"KevMo" wrote in message
...
I'm setting up a spreadsheet that includes arrival and departure dates
for
about 500 people. I'm trying to set it up so that I can figure out who
will
be present on a given day. For example All people who will be present
on
March 5. That range would include people arriving January 15 and
departing on
March 6, but also people arriving March 5 and departing on April 10.

Any suggestions on setting up a function and sort command combination
that
would allow me to do this.

Thanks



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
Crate group of date, with Dynamic Range in pivot table not working Tiya Excel Discussion (Misc queries) 3 March 1st 06 02:26 PM
Date Range within one cell Cachod1 New Users to Excel 5 October 18th 05 03:30 AM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Date Range and calculation vgreen Excel Worksheet Functions 2 August 23rd 05 11:08 AM
Update cell based on date range deversole Excel Discussion (Misc queries) 3 July 6th 05 01:58 PM


All times are GMT +1. The time now is 04:18 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"