Adding hours to get a decimal #

alexhewett

New Member
Joined
Nov 10, 2002
Messages
1
Im am trying to add hours together to get a decimal number. Ie: if I work 9:45 - 14:00 the answer should be 4.25 hrs. is there a way to get excel to do this.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi alexhewett


I have a formula that i'm working right now give about 5 mins and I'll put it up..testing it right now to see it works ok...
 
Upvote 0
Hi alexhewett

Start Finished total hrs work
9:45 14:00 4:15


In excel I used the insert function and used ABS. In the rows of the work sheet I formated the cells with format cell then used custom it was h:mm..I was off by 0:10
...Hope this helps you figure it out....I was close but I think that only counts in horse shoes...hhahaha..
This message was edited by Gemini on 2002-11-11 19:30
 
Upvote 0
Another approach

=CEILING(((B1-A1+(B1 < A1))*24),0.01)

This formula takes into account 10:00pm to 1:00am also.
 
Upvote 0
Hi alexhewett:

Welcome to the Board!
If the hours are within a 24 hour range, you can use ...
'=(B1-A1+(A1>B1)+0)*24
and format the result as Number with 2 decimal places
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,400
Members
448,893
Latest member
AtariBaby

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