Solved

Working with a time calculator

Posted on 2011-02-17
5
290 Views
Last Modified: 2012-05-11
I know this had been done a thousand times, but I am making one that will work for me. Very simply, I am tracking time of employees in a commerical database. But, once I enter those times, i have to enter the totals into an excel sheet. So, I want to create a very simple time calculator that will add it up for me. I have the time they work (regular) and also an exception time (the exception time is a period of time that they get paid a different rate for). So, I need a total of regular time and I total of exception time. The date is a 24 hour period, so I always have to mess with time after midnight. I have it mostly working, but my totals are in time. I would like to have them in decimals, not time. Then I need to round up the total to .25 (every 15 mins).

thanks
expert-exchange.xls
0
Comment
Question by:bvanscoy678
  • 3
  • 2
5 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 34918160
This formula in F4 will give you time in decimal rounded to the nearest quarter hour

=ROUND(MOD(D4-B4,1)*96,0)/4

copy formula down column

on row 5 that will round to the nearest 15 minutes so it gives you 2.5 in F5, if you want to always round up you can use the same formula but replace ROUND with ROUNDUP, i.e.

regards, barry

=ROUNDUP(MOD(D4-B4,1)*96,0)/4
0
 

Author Comment

by:bvanscoy678
ID: 34918240
Hi Barry,

I do need the exact time and also the rounded time.

Will part of this formual work from converting time to decimal?

example of what I am looking for.

start  07:00   End   10:12  total=
start  10:32   End   11:15  total=

then take all the totals and round up to the .25 (15 min)

thanks
0
 

Author Comment

by:bvanscoy678
ID: 34918274
After rereading, I also should point out that I will only be entering 1 - 24 hour peiord at a time.  0700-0700. This will be a calculator to total one days hours, not a log of their weekly hours.

thanks
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 34918280
OK then for F4 you can use this version for the exact time in decimals

=MOD(D4-B4,1)*24

copy that down the column and then use this formula to sum and round

=ROUNDUP(SUM(F4:F15)*4,0)/4

regards, barry
0
 

Author Closing Comment

by:bvanscoy678
ID: 34918337
Thanks Worked. Perfect.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

705 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

18 Experts available now in Live!

Get 1:1 Help Now