Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Any Nested Function & Condition For Calculating Date & Time

Start Time = 09:30
End Time = 16:00

Senario A

A3 = 01-JAN 08:28
B3 = 01-JAN 10:54

Q (1) If (A3 < 09:30, 09:30, 08:28)

Q (2) C3 = (B3 - A3),where if (A3 < 09:30, 09:30, 08:28)

Q (3) If (B3 16:00, 16:00, 10:54)

Senario B

A3 = 01-JAN 16:28
B3 = 02-JAN 08:34

Q(1)
If A3 (date) < B3 (date), 02-JAN 09:30 (X)
If B3 (date) = A3 (date), B3
B3 - A3 = C3
If B3 (time) < 09:30, 02-JAN 09:30
If B3 (time) 09:30, B3

Any solution for this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Any Nested Function & Condition For Calculating Date & Time

Here is something to start with
=IF(TIME(HOUR(A3),MINUTE(A3),0)<TIME(9,30,0),"A"," B")

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Safu" wrote in message
...
Start Time = 09:30
End Time = 16:00

Senario A

A3 = 01-JAN 08:28
B3 = 01-JAN 10:54

Q (1) If (A3 < 09:30, 09:30, 08:28)

Q (2) C3 = (B3 - A3),where if (A3 < 09:30, 09:30, 08:28)

Q (3) If (B3 16:00, 16:00, 10:54)

Senario B

A3 = 01-JAN 16:28
B3 = 02-JAN 08:34

Q(1)
If A3 (date) < B3 (date), 02-JAN 09:30 (X)
If B3 (date) = A3 (date), B3
B3 - A3 = C3
If B3 (time) < 09:30, 02-JAN 09:30
If B3 (time) 09:30, B3

Any solution for this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Any Nested Function & Condition For Calculating Date & Time

TQ Bernard & I've create the formula as follow for TIME:-

=IF(TIME(HOUR(A3),MINUTE(A3),0)<TIME(9,30,0),TIME( 9,30,0),A3)

Next further question is there any formula to retain the SAME value of date
if time is < 09:30. Where the value should given as 01-JAN 09:30.

"Bernard Liengme" wrote:

Here is something to start with
=IF(TIME(HOUR(A3),MINUTE(A3),0)<TIME(9,30,0),"A"," B")

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Safu" wrote in message
...
Start Time = 09:30
End Time = 16:00

Senario A

A3 = 01-JAN 08:28
B3 = 01-JAN 10:54

Q (1) If (A3 < 09:30, 09:30, 08:28)

Q (2) C3 = (B3 - A3),where if (A3 < 09:30, 09:30, 08:28)

Q (3) If (B3 16:00, 16:00, 10:54)

Senario B

A3 = 01-JAN 16:28
B3 = 02-JAN 08:34

Q(1)
If A3 (date) < B3 (date), 02-JAN 09:30 (X)
If B3 (date) = A3 (date), B3
B3 - A3 = C3
If B3 (time) < 09:30, 02-JAN 09:30
If B3 (time) 09:30, B3

Any solution for this?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Any Nested Function & Condition For Calculating Date & Time

Not sure I follow
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Safu" wrote in message
...
TQ Bernard & I've create the formula as follow for TIME:-

=IF(TIME(HOUR(A3),MINUTE(A3),0)<TIME(9,30,0),TIME( 9,30,0),A3)

Next further question is there any formula to retain the SAME value of
date
if time is < 09:30. Where the value should given as 01-JAN 09:30.

"Bernard Liengme" wrote:

Here is something to start with
=IF(TIME(HOUR(A3),MINUTE(A3),0)<TIME(9,30,0),"A"," B")

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Safu" wrote in message
...
Start Time = 09:30
End Time = 16:00

Senario A

A3 = 01-JAN 08:28
B3 = 01-JAN 10:54

Q (1) If (A3 < 09:30, 09:30, 08:28)

Q (2) C3 = (B3 - A3),where if (A3 < 09:30, 09:30, 08:28)

Q (3) If (B3 16:00, 16:00, 10:54)

Senario B

A3 = 01-JAN 16:28
B3 = 02-JAN 08:34

Q(1)
If A3 (date) < B3 (date), 02-JAN 09:30 (X)
If B3 (date) = A3 (date), B3
B3 - A3 = C3
If B3 (time) < 09:30, 02-JAN 09:30
If B3 (time) 09:30, B3

Any solution for this?






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
Date and Time Function Joey041 Excel Discussion (Misc queries) 5 November 22nd 06 09:21 AM
How to get date entered recording first time condition is true? Dan Morton Excel Discussion (Misc queries) 5 September 8th 05 12:19 AM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 05:48 PM.

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"