Solved

Working with a time calculator

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

864 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

19 Experts available now in Live!

Get 1:1 Help Now