Calculate time difference in excel
问题 I have a two dates in excel "1/2/2016 01:56:05" and "8/3/2016 06:21:46". How do I calculate the time difference between them in a format of days and hours? Thanks! 回答1: Try this to include the spelled out hours and minutes: =INT(A2-A1) & " days, " & TEXT(A2-A1,"h "" hours, ""m "" minutes""") Note that since the m comes immediately (ignoring the separator text in quotes) after the h it will be interpreted as minutes and not months 回答2: I prefer to work with dates as decimals. It looks