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?
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,779
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,779
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,779
Office Version
  1. 2010
Platform
  1. Windows
The result is in decimal minutes. If you want a time returned, don't multiply by 1440.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,569
Messages
5,596,915
Members
414,110
Latest member
docops

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