calculating time in quarter hours

ewmonty

New Member
Joined
Aug 21, 2009
Messages
1
I am trying to calculate time based off a non-conventional quarter hour time system

example;
8:00 to 8:07 = 8.0 hrs
8:08 to 8:23 = 8.25 hrs
8:24 to 8:38 = 8.5 hrs
8:39 to 8:53 = 8.75 hrs
8:53 to 8:59 = 9.0 hrs

I am having trouble writing an equation that would sum the clock-in and clock-out times (2 per day) and display the total time in these quarter hours and adding an additional hour if it is >= to *:53. Any help would be great.
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi ewmonty,

Perhaps the following will work for you. Assuming your clock-in time is in A1, and clock-out time is in B1:
Code:
=INT((B1-A1)*24)+LOOKUP(MOD((B1-A1)*24,1),{0,0.12,0.4,0.65,0.88},{0,0.25,0.5,0.75,1})
 
Upvote 0
Hi and welcome to the board!!
=MROUND(A1*24,0.25)
Format cell as General
Analysis ToolPak Required
 
Upvote 0
hi, well I'm coming in slow but this was a try assuming you have decimal values for the "Time Worked" (not hours/minutes):

Note: There's a problem in your table since 53 minutes is both .75 and 1 in the table. Also, it's not specific what happens to seconds (rounded to minutes, I assumed).

<a href="http://northernocean.net/etc/mrexcel/20090821_timesheet.zip">Download Sample Workbook</a>

<img alt="excel timesheet" src="http://northernocean.net/etc/mrexcel/20090821_timesheet.png" />
 
Last edited:
Upvote 0
normally the quarter hour rounded would change at

7.5
22.5
37.5
52.5 minutes

your quarter hours appear to change at
7.5
23.5
38.5
53 ?

column B and C show normal rounding
column D should rounding to your numbers
there is the question at 8:53 as to what value you really want

Excel Workbook
ABCD
18:008:008:008:00 AM
28:078:008:008:00 AM
38:088:158:158:15 AM
48:228:158:158:15 AM
58:238:308:308:15 AM
68:248:308:308:30 AM
78:378:308:308:30 AM
88:388:458:458:30 AM
98:398:458:458:45 AM
108:528:458:458:45 AM
118:539:009:009:00 AM
129:009:009:009:00 AM
Sheet8
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,924
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top