Solved

Working with a time calculator

Posted on 2011-02-17
5
311 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

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,…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

840 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