Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Another Time Question in excel...going past midnight

Posted on 2011-02-22
Medium Priority
275 Views
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
Question by:bvanscoy678
[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
• Learn & ask questions

LVL 50

Accepted Solution

barry houdini earned 2000 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

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

## Featured Post

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
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 …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
###### Suggested Courses
Course of the Month6 days, 12 hours left to enroll

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

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