Time conversion to existing formula

psc1

New Member
Joined
Nov 27, 2011
Messages
32
Office Version
  1. 2010
Hi All
I got myself a headache trying to work this one out..
I am sure one of you experts out there will get me going ;)
2 cells to modify, I already have the hours but I need to show the minutes in actual time and not decimals but rounded to the nearest 15min.
Also, I need to add to a cell time from another cell but only if it goes beyond a value (132hrs) Then add the difference (whatever is above 132).
Please see attached document.
Many thanks

D&T Test.xlsx
ABCDEF
1
2Initial Date1/09/2023
3Initial Time7:00
41st Local Time Difference0
5Expected Date & Time (TU)6/09/2023 7:00
6Recommended Date & Time (TU)6/09/2023 7:00
7Actual Start Date (TU)6/09/2023
8Actual Start Time (TU)7:22
9Start Original Date & Time (TU)6/09/2023 7:22
10Hours Since Initial (120 +/-12hrs)120.3666667How to read decimal in minutes? Can it be rounded to the nearest 15 minutes?
112nd Local Time Difference0
12Expected Date & Time (V)12/09/2023 7:00
13Recommended Start Date & Time (V)12/09/2023 7:00
14Actual Start Date (V)12/09/2023
15Actual Start Time (V)7:12
16Start Time (V)12/09/2023 7:12
17Total Time from Initial (Min 264hrs)264.2How to read decimal in minutes? Can it be rounded to the nearest 15 minutes?
18Also, C17 needs to take into account additional hours IF C10 goes above 132hrs
19C17 must add hours from C10 ONLY if they are above 132
20
Sheet1
Cell Formulas
RangeFormula
C5C5=(C2+C3)+120/24
C6,C13C6=C5+(C4/24)
C9,C16C9=(C7+C8)-(C4/24)
C10C10=(C9-(C2+C3))*24
C12C12=(C2+C3)+264/24
C17C17=(C16-(C2+C3))*24
Cells with Data Validation
CellAllowCriteria
F3List=Sheet2!$B$4:$B$12
F6List=Sheet2!$B$4:$B$12
C4List=Sheet2!$B$2:$B$14
C11List=Sheet2!$B$2:$B$14
 
This might need to be asked on a separate thread ;)
Thank you so much for you help with this.. Much appreciated.
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
is such a formula exist?
I just googled and found MROUND. No new thread needed.


Book1
ABCDE
1
2Initial Date2023-09-01
3Initial Time07:00:00
41st Local Time Difference0
5Expected Date & Time (TU)2023-09-06 07:00:00
6Recommended Date & Time (TU)2023-09-06 07:00:00
7Actual Start Date (TU)2023-09-06
8Actual Start Time (TU)07:17:00
9Start Original Date & Time (TU)2023-09-06 07:17:00
10Hours Since Initial (120 +/-12hrs)120.2833333120hr30minHow to read decimal in minutes? Can it be rounded to the nearest 15 minutes?
112nd Local Time Difference0120hr17mincustom format: [hh]"hr"mm[min]
12Expected Date & Time (V)2023-09-12 07:00:00120hr15min
13Recommended Start Date & Time (V)2023-09-12 07:00:00
14Actual Start Date (V)2023-09-12
15Actual Start Time (V)07:12:00
16Start Time (V)2023-09-12 07:12:00
17Total Time from Initial (Min 264hrs)264.2264hr15minHow to read decimal in minutes? Can it be rounded to the nearest 15 minutes?
18264hr12minAlso, C17 needs to take into account additional hours IF C10 goes above 132hrs
19264hr15minC17 must add hours from C10 ONLY if they are above 132
Sheet3
Cell Formulas
RangeFormula
C5C5=(C2+C3)+120/24
C6,C13C6=C5+(C4/24)
C9,C16C9=(C7+C8)-(C4/24)
C10C10=(C9-(C2+C3))*24
D10D10=CEILING(C9-(C2+C3),15/(60*24))
D11D11=(C9-(C2+C3))
D12D12=MROUND(C9-(C2+C3),15/(24*60))
C12C12=(C2+C3)+264/24
C17C17=(C16-(C2+C3))*24
D17D17=CEILING(C16-(C2+C3)+IF(D10>=(132/24),D10-132/24,0),15/(60*24))
D18D18=C16-(C2+C3)+IF(D10>=(132/24),D10-132/24,0)
D19D19=MROUND(C16-(C2+C3)+IF(D10>=(132/24),D10-132/24,0),15/(60*24))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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