Convert time caluation to hour format not decimal.

tbobolz

Board Regular
Joined
Mar 18, 2010
Messages
148
Excel 2010

Hi, I have the below formula which returns the correct answer but in decimal format. It then does not allow the column to be formatted in a time value.

So the formula returns the value example of 1.25 (1 and a quarter hours), when I want it to return 1:15 (1 Hour and 15 minutes).

=if(or(Table1[ER ARRIVAL DATETIME]="",Table1[ER DEPARTURE DATETIME]=""),0,24 * (Table1[ER DEPARTURE DATETIME]-Table1[ER ARRIVAL DATETIME]))


Any thoughts on correcting this.

Thanks
Terry
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Thanks for the help Scott. I tried to remove te 24 *, but returns a vaule of .272222. still does not allow me to update the Data Type to date format. It should return about 6:32. With the 24 * it returns 6.5333.

Here's what I am subtracting.
2/3/2014 3:28:00 PM -
2/3/2014 10:00:00 PM

Again, I appreciate the help!
 
Upvote 0
Ok, I got it. I had spent so much time on it I forgot to reformat my pivot after I removed the 24 *.


Thanks!!!!!!!!!!!!!!!!!! Scott.
 
Upvote 0

Forum statistics

Threads
1,223,990
Messages
6,175,817
Members
452,672
Latest member
missbanana

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