Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Excel time calculations that cross the midnight hour

Posted on 2013-01-19
Medium Priority
444 Views

What formula would be needed in time card calculations when the daily schedule passed the mignight hour.

Robert
midnight-time.xlsx
0
Question by:rws1
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 43

Expert Comment

ID: 38796533
Try something like this in E7

=((D7<D4)+D7)*24
0

LVL 50

Accepted Solution

barry houdini earned 2000 total points
ID: 38796534
You could change E8 formula to this

=MOD(E7-E6,24)+MOD(E5-E4,24)

and that will give you correct 9.50 without needing to change E7 formula

or use this formula in E7

=((D7<D6)+D7)*24

and leave E8 unchanged

regards, barry
0

Author Comment

ID: 38796565
Thank you Barry, =MOD(E7-E6,24)+MOD(E5-E4,24), was the correct answer for my formula.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are â€¦
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calculâ€¦
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
###### Suggested Courses
Course of the Month9 days, 7 hours left to enroll