Using the TEXT function in Excel is another simple way to calculate the time difference between two dates: Calculate the number of hours between two dates: TEXT = (B2-A2, "h") Return the hours and minutes between the following two times: TEXT = (B2-A2, "h:mm") Between two times, return the hours, minutes, and seconds: TEXT = (B2-A2, "h:mm:ss")
