Any Nested Function & Condition For Calculating Date & Time

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
Here is something to start with
=IF(TIME(HOUR(A3),MINUTE(A3),0)<TIME(9,30,0),"A","B")
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top