Solved

Another Time Question in excel...going past midnight

Posted on 2011-02-22
2
265 Views
Last Modified: 2012-06-27
I made a time calculator the other day with the help from EE. Now, I am trying to build on that to make a time card that will track specialty pay.
We work 24 hour shift (0700-0700). My idea is to make a "sheet log" that will track the time. Then I can use a pivot table to group and total.

I tried simply =F6-E6 which is fine until I hit a time frame that goes accross midnight.
Then, I tired the =MOD(F6-E6,1)*24 that I learned from the time card project.

I am not certain if I have this set up correctly to be able to count the time past midnight.

Thanks pivot-time-card.xlsx
0
Comment
Question by:bvanscoy678
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 34956233
The version with MOD, will work in most cases but if you want to get 24 for 07:00 to 07:00 then try this formula in G6 copied down

=(F6-E6+(E6>=F6))*24

and format as number

see attached

regards, barry
26840183.xls
0
 

Author Closing Comment

by:bvanscoy678
ID: 34956433
Thanks, worked perfect. I appreciate it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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,…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now