Hello All -
I need to calculate any hours between 8:00PM and 6:00AM
Example:
Start Time:10:00PM
End Time:6:30AM
Answer: 8 hours
Please help me.
Thank you.
Jenny
Hello All -
I need to calculate any hours between 8:00PM and 6:00AM
Example:
Start Time:10:00PM
End Time:6:30AM
Answer: 8 hours
Please help me.
Thank you.
Jenny
Last edited by JennyGP; 12-19-2012 at 03:52 AM.
Not sure how you are arriving 6 hours?
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Sorry - I meant 8 hours
Thank you.
Try this...
A1 cell
10:00 PM
B1 cell
6:30 AM
In C1 cell
Formula:Please Login or Register to view this content.
Hi JennyGP,
Still answer would be 8:30 hours as per your example:
Example:
Start Time:10:00PM
End Time:6:30AM
Answer: 6 hours
Use below formula:-
=IF(B2<A2,("24:00:00"-A2)+B2,B2-A2)
where A2 is start time and B2 is End time
See attached Time diff.xlsx
Regards,
DILIPandey
<click on below 'star' if this helps>
DILIPandey, Excel rMVP
+919810929744 (India), +971528225509 (Dubai), [email protected]
Thank you -
One more question the time format should be as an example 5:00 PM or 17:00? just 5:00
I actually have the raw data showing one column 5:00 and the other column shows AM or PM
Hi Jenny,
These all are time formats.. you can format the cell as you want. Select the cell, press ctrl + 1, and choose the required format under Time category
Regards,
DILIPandey
<click on below 'star' if this helps>
I need to calculate the hours that fall between 8PM and 6 AM so the answer would have to be 8 hours
Please help
as per me.. result should be 10 hours .. please check. thanks.calculate the hours that fall between 8PM and 6 AM so the answer would have to be 8 hours
Regards,
DILIPandey
<click on below 'star' if this helps>
Hours between 8pm and 6am is total of 10 hours however i am trying to capture the hours within different time periods
example
start: 10:00PM
end: 630AM
Answer 8 hours
start: 7:00 PM
end: 6:30 PM
ANswer: 11 hours
M confused.. I surrender
Regards,
DILIPandey
<click on below 'star' if this helps>
Thank you for trying
If your times are in A1 and B1 try:
=MOD(B1-A1, 1)
IT gives me total hours in a clock in and out period but i only need to count the hours the fall between 8 pm and 6 am
try this:
Formula:Please Login or Register to view this content.
It was almost perfect -
I must be doing something worng
When i have start 20:30 and end of 22:30 it is calculating 10 hours and not 2:30 hours
SOC.xlsx
Hope this works -
I am trying to attach a portion of my data that i need help with.
TY
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks