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
In this set up you can add a formula in cell D3 as follows:
=IF(B3=quot;quot;,quot;quot;,IF(B3lt;C2,quot;ERRORquot;,quot;quot;))
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.
PetePut this is the second data row and copy down
=IF(OR(SUMPRODUCT(--($B$2:B2lt;=B3),--($C$2:C2gt;B3))gt;0,SUMPRODUCT(--($B$2:B2lt;=C
3),--($C$2:C2gt;C3))gt;0),quot;Errorquot;,quot;quot;)
--
HTH
Bob Phillips
(remove nothere from the email address if mailing direct)
quot;Pendelfinquot; gt; wrote in message
...
gt; I just wondered if it was possible to check time availavilty within a
gt; spreadsheet.
gt;
gt; For example. I have the following data
gt; Date Start Time End Time
gt; 5/2/03 09.00 11.00
gt; 5/2/03 13.00 15.30
gt; 5/2/03 15.00 16.00
gt;
gt; For the 3rd entry I would like to display an error as there is already a
gt; meeting scheduled for this time.
gt;
gt; I have asked this before, but maybe wasn't very clear in what I required,
as
gt; I had no responses. If there is no way to do this, many thanks for taking
gt; the time to read this post. If there is possbly another way I could work
gt; this please let me know, any help would be greatly appreciated.
gt;
gt; Many Thanks
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$10lt;A1 B1),--(A$1:A$10 C$1:C$10gt;A1 B1)),quot;oops!quot;,quot;quot;)--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: www.excelforum.com/member.php...oamp;userid=30486
View this thread: www.excelforum.com/showthread...hreadid=506994I have tried that formula, but it appears to show quot;oops!quot; in valid times, and
not in invalid ie the 8/1 doesn't show oops?
Please advise.
DateStartEnd
01-Jan09.1510.00
02-Jan16.0017.00oops!
03-Jan09.0015.15
03-Jan14.0016.00oops!
05-Jan12.0013.00oops!
06-Jan09.0011.00oops!
06-Jan17.0018.00
08-Jan11.0011.30
08-Jan11.0011.30
quot;daddylonglegsquot; wrote:
gt;
gt; Assuming you have dates in column A from A2 down and the start times are
gt; from B2, end times from C2
gt;
gt; you could use this formula in D2 and copy down column
gt;
gt; =IF(SUMPRODUCT(--(A$1:A$10 B$1:B$10lt;A1 B1),--(A$1:A$10 C$1:C$10gt;A1 B1)),quot;oops!quot;,quot;quot;)
gt;
gt;
gt; --
gt; daddylonglegs
gt; ------------------------------------------------------------------------
gt; daddylonglegs's Profile: www.excelforum.com/member.php...oamp;userid=30486
gt; View this thread: www.excelforum.com/showthread...hreadid=506994
gt;
gt;
Bob
I tried the following formula but I have errors on Valid rows.
Please help.
DateStartEndTime Check
01-Jan09.1510.00
02-Jan16.0017.00
03-Jan09.0015.15Error
03-Jan14.0016.00Error
05-Jan12.0013.00Error
06-Jan09.0011.00
06-Jan17.0018.00Error
08-Jan11.0011.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
quot;Bob Phillipsquot; wrote:
gt; Put this is the second data row and copy down
gt;
gt; =IF(OR(SUMPRODUCT(--($B$2:B2lt;=B3),--($C$2:C2gt;B3))gt;0,SUMPRODUCT(--($B$2:B2lt;=C
gt; 3),--($C$2:C2gt;C3))gt;0),quot;Errorquot;,quot;quot;)
gt;
gt; --
gt;
gt; HTH
gt;
gt; Bob Phillips
gt;
gt; (remove nothere from the email address if mailing direct)
gt;
gt; quot;Pendelfinquot; gt; wrote in message
gt; ...
gt; gt; I just wondered if it was possible to check time availavilty within a
gt; gt; spreadsheet.
gt; gt;
gt; gt; For example. I have the following data
gt; gt; Date Start Time End Time
gt; gt; 5/2/03 09.00 11.00
gt; gt; 5/2/03 13.00 15.30
gt; gt; 5/2/03 15.00 16.00
gt; gt;
gt; gt; For the 3rd entry I would like to display an error as there is already a
gt; gt; meeting scheduled for this time.
gt; gt;
gt; gt; I have asked this before, but maybe wasn't very clear in what I required,
gt; as
gt; gt; I had no responses. If there is no way to do this, many thanks for taking
gt; gt; the time to read this post. If there is possbly another way I could work
gt; gt; this please let me know, any help would be greatly appreciated.
gt; gt;
gt; gt; Many Thanks
gt;
gt;
gt;
- Sep 10 Mon 2007 20:39
Working with times
close
全站熱搜
留言列表
發表留言