#1   Report Post  
Posted to microsoft.public.excel.misc
Pendelfin
 
Posts: n/a
Default Working with times

I just wondered if it was possible to check time availavilty within a
spreadsheet.

For example. I have the following data
Date Start Time End Time
5/2/03 09.00 11.00
5/2/03 13.00 15.30
5/2/03 15.00 16.00

For the 3rd entry I would like to display an error as there is already a
meeting scheduled for this time.

I have asked this before, but maybe wasn't very clear in what I required, as
I had no responses. If there is no way to do this, many thanks for taking
the time to read this post. If there is possbly another way I could work
this please let me know, any help would be greatly appreciated.

Many Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default Working with times

In this set up you can add a formula in cell D3 as follows:

=IF(B3="","",IF(B3<C2,"ERROR",""))

and copy it into D4 (and downwards). I have assumed you have a row of
headings, so you actually want to check from the second entry onwards.

Hope this helps.

Pete

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Working with times

Put this is the second data row and copy down

=IF(OR(SUMPRODUCT(--($B$2:B2<=B3),--($C$2:C2B3))0,SUMPRODUCT(--($B$2:B2<=C
3),--($C$2:C2C3))0),"Error","")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Pendelfin" wrote in message
...
I just wondered if it was possible to check time availavilty within a
spreadsheet.

For example. I have the following data
Date Start Time End Time
5/2/03 09.00 11.00
5/2/03 13.00 15.30
5/2/03 15.00 16.00

For the 3rd entry I would like to display an error as there is already a
meeting scheduled for this time.

I have asked this before, but maybe wasn't very clear in what I required,

as
I had no responses. If there is no way to do this, many thanks for taking
the time to read this post. If there is possbly another way I could work
this please let me know, any help would be greatly appreciated.

Many Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default Working with times


Assuming you have dates in column A from A2 down and the start times are
from B2, end times from C2

you could use this formula in D2 and copy down column

=IF(SUMPRODUCT(--(A$1:A$10+B$1:B$10<A1+B1),--(A$1:A$10+C$1:C$10A1+B1)),"oops!","")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=506994

  #5   Report Post  
Posted to microsoft.public.excel.misc
Pendelfin
 
Posts: n/a
Default Working with times

I have tried that formula, but it appears to show "oops!" in valid times, and
not in invalid ie the 8/1 doesn't show oops?

Please advise.

Date Start End
01-Jan 09.15 10.00
02-Jan 16.00 17.00 oops!
03-Jan 09.00 15.15
03-Jan 14.00 16.00 oops!
05-Jan 12.00 13.00 oops!
06-Jan 09.00 11.00 oops!
06-Jan 17.00 18.00
08-Jan 11.00 11.30
08-Jan 11.00 11.30



"daddylonglegs" wrote:


Assuming you have dates in column A from A2 down and the start times are
from B2, end times from C2

you could use this formula in D2 and copy down column

=IF(SUMPRODUCT(--(A$1:A$10+B$1:B$10<A1+B1),--(A$1:A$10+C$1:C$10A1+B1)),"oops!","")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=506994




  #6   Report Post  
Posted to microsoft.public.excel.misc
Pendelfin
 
Posts: n/a
Default Working with times

Bob

I tried the following formula but I have errors on Valid rows.

Please help.

Date Start End Time Check
01-Jan 09.15 10.00
02-Jan 16.00 17.00
03-Jan 09.00 15.15 Error
03-Jan 14.00 16.00 Error
05-Jan 12.00 13.00 Error
06-Jan 09.00 11.00
06-Jan 17.00 18.00 Error
08-Jan 11.00 11.30

I would only expect to see the error on rows 3 and 4.
I have entered this into cell d2 and copied this down is this incorrect?

Many Thanks

"Bob Phillips" wrote:

Put this is the second data row and copy down

=IF(OR(SUMPRODUCT(--($B$2:B2<=B3),--($C$2:C2B3))0,SUMPRODUCT(--($B$2:B2<=C
3),--($C$2:C2C3))0),"Error","")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Pendelfin" wrote in message
...
I just wondered if it was possible to check time availavilty within a
spreadsheet.

For example. I have the following data
Date Start Time End Time
5/2/03 09.00 11.00
5/2/03 13.00 15.30
5/2/03 15.00 16.00

For the 3rd entry I would like to display an error as there is already a
meeting scheduled for this time.

I have asked this before, but maybe wasn't very clear in what I required,

as
I had no responses. If there is no way to do this, many thanks for taking
the time to read this post. If there is possbly another way I could work
this please let me know, any help would be greatly appreciated.

Many 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
Number of employees working at given time Scott Excel Discussion (Misc queries) 1 December 29th 05 12:25 AM
sorting multiple minimum times the swimmer Excel Discussion (Misc queries) 2 December 23rd 05 02:32 AM
Charting and analyzing Times' times data for trends Johnny Excel Discussion (Misc queries) 1 May 5th 05 01:36 AM
Trace Dependents and Precedents not working Manish Excel Worksheet Functions 0 April 11th 05 09:39 PM
How to chart start and stop times tresscott Charts and Charting in Excel 1 April 10th 05 11:04 PM


All times are GMT +1. The time now is 02:04 PM.

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

About Us

"It's about Microsoft Excel"