time diference between 2 cells

paul w

Board Regular
Joined
Apr 25, 2010
Messages
195
time difference problem
im trying to calculate the time difference between 2 cells and in the 3rd cell, display the answer in decimal format,
e.g A1 0800 B1 0930 i would like C1 to display 1.5 not 130
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
If you enter the times in hh:mm format then try like this

Excel Workbook
ABC
108:0009:301.5
Sheet2
 
Upvote 0
thanks for the quick reply but it keps returnong 00:00
even in a1 and b1 cells, seems to be adding the date to the front of my data
 
Upvote 0
You have to enter the times in a format that Excel interprets as time:

08:00 not 800

09:30 not 930
 
Upvote 0
that worked thanks, sorry but is there any way of just entering 0800 and having excel change it to 08:00 i have to add a lot of times on my time sheet,
 
Upvote 0
thanks for your time will try the code out later, got to try and work out how to open a small spread sheet inside the main sheet now, if it is possible and add data which will then transfer to the main sheet for calculations etc. dont know if you can help with this as i feel i have troubled you enough already.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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