View Single Post
  #1  
Old May 31st, 2010, 04:30 PM posted to microsoft.public.excel.worksheet.functions
Raj[_4_]
external usenet poster
 
Posts: 27
Default Difference between two date/time values

Hi,

Cell A1 has 21-04-10 07:00 PM
Cell A2 has 06-06-10 07:52 AM
(the dates are in the dd-mm-yy format)

Cell A3 has the formula =A2-A1 for showing the differences in days and
time and is formatted with the custom format:
dd h:mm:ss

The display in cell A3 is 14 12:52:00. While the difference in hours
is okay, the difference in days should be more than 14 as there is are
31 days of May between the two dates. Is there another format to show
the correct difference in days or should be done some other way?
Please help.

Thanks in advance.

Regards,
Raj