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
  • Learn & ask questions
Solved

Excel time calculations that cross the midnight hour

Posted on 2013-01-19
3
425 Views
Last Modified: 2013-01-19
Please see attached file,

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

Thank you for your help,
Robert
midnight-time.xlsx
0
Comment
Question by:rws1
3 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 38796533
Try something like this in E7

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

Accepted Solution

by:
barry houdini earned 500 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

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

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
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…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question