Time Conversion

Lucy89

Board Regular
Joined
Jan 25, 2009
Messages
88
Hi

I have the following problem. I am trying to automate a time-sheet but I am having a problem converting .30hrs to 0.50hrs.

For example:
C4 I have the start time 08.00
D4 I have the finish time 08.30
E4 I have D4-C4 which equals 0.30

C4 I have the start time 08.00
D4 I have the finish time 08.15
E4 I have D4-C4 which equals 0.15

C4 I have the start time 07.45
D4 I have the finish time 08.30
E4 I have D4-C4 which equals 0.85

Is it possible to convert .30 to display 0.50, 0.15 to display 0.25 and 0.85 to display as 0.75.

This would help with adding the weekly hours.


Thank you very much,

L
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
[table="width:, class:grid"][tr][td="bgcolor:#c0c0c0"][/td][td="bgcolor:#c0c0c0"]
c​
[/td][td="bgcolor:#c0c0c0"]
d​
[/td][td="bgcolor:#c0c0c0"]
e​
[/td][td="bgcolor:#c0c0c0"]
f​
[/td][/tr][tr][td="bgcolor:#c0c0c0"]
4​
[/td][td]
8.00​
[/td][td]
8.30​
[/td][td="bgcolor:#ccffcc"]
0.50​
[/td][td="bgcolor:#ccffcc"]e4: =dollarde(d4, 60) - dollarde(c4, 60)[/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
5​
[/td][td]
8.00​
[/td][td]
8.15​
[/td][td="bgcolor:#ccffcc"]
0.25​
[/td][td][/td][/tr]
[tr][td="bgcolor:#c0c0c0"]
6​
[/td][td]
7.45​
[/td][td]
8.30​
[/td][td="bgcolor:#ccffcc"]
0.75​
[/td][td][/td][/tr]
[/table]
 
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD="bgcolor: #c0c0c0"][/TD]
[TD="bgcolor: #c0c0c0"]
c​
[/TD]
[TD="bgcolor: #c0c0c0"]
d​
[/TD]
[TD="bgcolor: #c0c0c0"]
e​
[/TD]
[TD="bgcolor: #c0c0c0"]
f​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #c0c0c0"]
4​
[/TD]
[TD]
8.00​
[/TD]
[TD]
8.30​
[/TD]
[TD="bgcolor: #ccffcc"]
0.50​
[/TD]
[TD="bgcolor: #ccffcc"]e4: =dollarde(d4, 60) - dollarde(c4, 60)[/TD]
[/TR]
[TR]
[TD="bgcolor: #c0c0c0"]
5​
[/TD]
[TD]
8.00​
[/TD]
[TD]
8.15​
[/TD]
[TD="bgcolor: #ccffcc"]
0.25​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #c0c0c0"]
6​
[/TD]
[TD]
7.45​
[/TD]
[TD]
8.30​
[/TD]
[TD="bgcolor: #ccffcc"]
0.75​
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

shg that works fantastically well! Thank you so much :-)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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