View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave at tch
 
Posts: n/a
Default Finding concurrent events from a list with a start and an end

Thanks for your help Gary - we may be very nearly there.

My list looks like this

startdatetime Endtime
01/10/2005 8:50:12 01/10/2005 8:50:16
01/10/2005 10:30:50 01/10/2005 10:30:57
01/10/2005 10:38:11 01/10/2005 10:38:19
01/10/2005 10:39:41 01/10/2005 10:39:50
01/10/2005 10:42:37 01/10/2005 10:48:30
01/10/2005 10:48:02 01/10/2005 10:48:05
01/10/2005 12:01:54 01/10/2005 12:02:36
01/10/2005 13:20:49 01/10/2005 13:20:52
01/10/2005 14:16:05 01/10/2005 14:16:33
01/10/2005 17:38:23 01/10/2005 17:45:20
01/10/2005 18:58:42 01/10/2005 18:58:52
01/10/2005 22:23:04 01/10/2005 22:23:04

I don't think I can add every second of a month in the next column and then
use your formula (64k lines is not enough). Any other ides or should I use
your idea but work in Access instead?

Thank you very much for your help

Dave

"Gary L Brown" wrote:

Assume...
A B C
1 Event Start Date End Date
2 Circus 01/01/2006 01/05/2006
3 Play 01/01/2006 01/03/2006
4 Auction 01/02/2006 01/04/2006
5 Debate 01/03/2006 01/03/2006
6 Game 01/04/2006 01/05/2006

In E1, put "Dates"
In F1, put "Events"

In E2 down to E???, put the dates you want to check on.
In F2 put the following ARRAY formula. That means, when you have completed
the formula, instead of hitting ENTER, you hit CTRL-SHIFT-ENTER. The { and }
will appear at the beginning and end of the formula. Copy this formula down
to the end of your 'Dates' list.

Formula in F2:
=SUM(IF($B$2:$B$6<=E2,1,0)*IF($C$2:$C$6=E2,1,0))

after hitting Ctrl-Shift-Enter will look like...
{=SUM(IF($B$2:$B$6<=E2,1,0)*IF($C$2:$C$6=E2,1,0)) }


Your worksheet should now look something like...

A B C D E F
1 Event Start Date End Date Dates Events
2 Circus 01/01/2006 01/05/2006 01/01/2006 2
3 Play 01/01/2006 01/03/2006 01/02/2006 3
4 Auction 01/02/2006 01/04/2006 01/03/2006 4
5 Debate 01/03/2006 01/03/2006 01/04/2006 3
6 Game 01/04/2006 01/05/2006 01/05/2006 2
7 01/06/2006 0
8 01/07/2006 0
9 01/08/2006 0

HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.


"Dave at tch" wrote:

Hi,

I have a long list of events in excel each with a start and end date/time. I
need to work out the maximum number of concurrent events at any one time in
the list. Any ideas on how to do it?

Dave