Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   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 time

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary L Brown
 
Posts: n/a
Default Finding concurrent events from a list with a start and an end time

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

  #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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary L Brown
 
Posts: n/a
Default Finding concurrent events from a list with a start and an end

Sorry, when you wrote of 'events', I thought you were in Property Management.
I can't think of another way to do this. Why don't you try re-posting this
to see if someone else can come up with a better solution?
Don't just reply because the posting will stay way down here in 1/12/2006
instead of at the top in 1/13/2006.
HTH and Good Luck.
--
Gary Brown

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


"Dave at tch" wrote:

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

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 do I get Exel to return # of hrs. worked, start time is enter joyce007 Excel Worksheet Functions 1 January 4th 06 04:36 PM
Calculating Difference Between Start Date & Time And End Date & Ti Samwar Excel Discussion (Misc queries) 2 December 19th 05 01:42 PM
Excel Time Manipulation BFiedler Excel Discussion (Misc queries) 0 September 15th 05 01:15 AM
Finding Time difference John Harris Excel Worksheet Functions 2 May 13th 05 11:32 PM
Inserting Blank Rows Macro? Michael Saffer Excel Worksheet Functions 2 November 9th 04 07:23 PM


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