Subtracting Dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two dates and times and the formula is subtracting one date from the other. The dates are exactly 24 hours apart, but is showing 0 hours rather than 24
2/19/04 12:00 AM 2/20/04 12:10 AM =TEXT(P5-O5,"h"

The formula appears to be working in all of the other columns

Also, is there a way to find the difference in business hours between these dates? Some days are more than one day apart

Thank
 
Hi
try the following
=P5-O5
and format this cell with the custom format [hh]:mm
or use
=TEXT(P5-O5,"[hh]")
 
Back
Top