• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Date and Time format with Range calculation

Wong

New Member
Hi,

Need help on date and time format calculation. I need to calculate the difference between 2 dates with time then determine the time difference fall in which range.

e.g.
07/03/2017 17:41:35 (A2) and 11/03/2017 22:02:52 (B2)
Difference = 100 Hours 21 Mins 17 Secs
100:21:17 should be in range "More than 24 Hours"

The difference can be ranged from 00:00:01 to more than 100:00:00.

The formula that I used unable to determine the correct range. Attached my sample file. Appreciate your help.
 
Hi vletm,

Thanks for your help. However, I'm still facing problem (Row 3 and 4).
Both with 0:01:00 but fall into 2 different ranges.
Any idea?
 

Attachments

I did try to change the limits (E-col) like what you did. After this change, the problem now is with 0:01:01 with 2 different ranges.
 

Attachments

Many thanks vletm and bosco_yip.
I noticed that if use:
1. ROUND(B2-A2,10), problem at 24:00:01
2. ROUND(B2-A2,5), problem at 1:00:01

So I use (ROUND(C2*84600),0). This seems able to solve above 2 issues.
 

Attachments

Back
Top