Duncan Butterworth

New Member
Joined
Jul 12, 2006
Messages
43
Hi,
I can't accomplish this maybe someone can help.
Thanking you in advance.

Start time End time
07/05/2019 09:00 07/05/2019 13:40 4.75
08/05/2019 08:58 08/05/2019 13:35 4.5
09/05/2019 09:03 09/05/2019 13:43 4.5
10/05/2019 08:57 10/05/2019 13:48 4.75


what I need is a formula that will round these times to 15 mins take the start time from the end time and return as a decimal

Regards,
Duncan


EDIT: Meant to call it End time (rounded to 15mins) minus Start Time (rounded to 15mins as a decimal)
 
Last edited by a moderator:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
MROUND should get you there:

Excel 2010
ABC
1StartEndDecimal
25/7/2019 9:005/7/2019 13:404.75
35/8/2019 8:585/8/2019 13:354.5
45/9/2019 9:035/9/2019 13:434.75
55/10/2019 8:575/10/2019 13:484.75

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C2=(MROUND(B2,15/60/24)-MROUND(A2,15/60/24))*24

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Calcsux,
Thanks for the reply I think we are nearly there.

hours Start Time End Time
6.00 07/05/2019 07:36:51 07/05/2019 13:45:49
6.00 08/05/2019 07:33:50 08/05/2019 13:35:47
6.00 09/05/2019 07:39:33 09/05/2019 13:43:35
6.00 10/05/2019 07:35:54 10/05/2019 13:33:36

When I use the formula you gave and compare it to the first column it appears correct but when I conditional format it to turn it red if they are not the same it colours it, I think its the seconds that are creating the problem.
Sorry for the wrong data posted it didn't contain the second.

Duncan
 
Upvote 0
Not sure if I follow you on the last part. Would you be able to post your conditional formatting formula?

Also, to clarify... You do want to round the start time and the end time, then take the difference of those rounded times to calculate hours, correct?
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,165
Members
448,870
Latest member
max_pedreira

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