Solved

Working with a time calculator

Posted on 2011-02-17
5
325 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
[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
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
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.

734 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