Getting total minutes from 2 dates (Time elapse)

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
892
Hi, strugglin here and keep getting ################ when I simply subtract to time stamps.

They are in date format
Checked by converting to number and its a serial number

simply
3/9/2011 5:00 PM - 3/9/2011 5:31 PM *1440

Format as number or HH:MM doesn't work

Any ideas?
 

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"

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,833
Office Version
  1. 2010
Platform
  1. Windows
You need to subtract the smaller from the larger

=("3/9/2011 5:31 PM" - "3/9/2011 5:00 PM") *1440
 

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,833
Office Version
  1. 2010
Platform
  1. Windows
If you paste the exact formula I posted into a cell you get hash marks?

I get 31.
 

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
892

ADVERTISEMENT

Must have been the format of the cell. In a new cell it works. And I didn't have ( ) which matters.

Now when I format as number I get 1.99999999 , when I format at mm:ss I get 00:00.

Do you know why?

=(3/9/2011 11:02 - 3/9/2011 11:00)*1440
 

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,833
Office Version
  1. 2010
Platform
  1. Windows
The result is in decimal minutes. If you want a time returned, don't multiply by 1440.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,517
Messages
5,832,222
Members
430,116
Latest member
d1pakjha

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
Top