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

x
?
Solved

Working with a time calculator

Posted on 2011-02-17
5
Medium Priority
?
331 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 2000 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
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…

670 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