Time issue

james rockford

Active Member
Joined
May 27, 2004
Messages
250
Hello to all.....

I am look to find the sum between to times but the issie is i have part of the time were we need to subtract a value IE....
from 12:00 am to 6:45 Am will be remove for the totals...so if i have a start time of
11:45 to 8:45 Am i will need to count the time from 11:45 to 12:00 Am then subtract the time from 12 to 6:45 am and then start counting again at 6:45 am....this will look like 2:15
Can some one help with a forumla....thanks

Note please e-mail me at [e-mail address removed]

Thanks and i hope this is clear
 
Last edited by a moderator:

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi Dannyh1...the start time will always be 6:45 am......so the time from 12: pm to 6:45 am
is the problem this time will not count in the totals
 
Upvote 0
Will this work:

Fixed:
A1 = 12:00
A2 = 06:45

Variable
B1 = 11:45
B2 = 08:45

Formula:

=IF(AND(B1 < <A1,B2>A1, B2 > A2),(A1-A2)-(B1-B2),0)
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,405
Members
452,911
Latest member
a_barila

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top