Calculate difference in time in Microsoft Excel

Share
Calculate difference in time in Microsoft Excel

Let’s say that you want to find out how long it takes for an employee to complete an assembly line operation or a nurse to give insulin after a blood glucose test, or a fast food order to be processed at peak hours. There are several ways to calculate the difference between two times.

One of the easiest methods is to subtract one time from another and format the result as h:mm. When you do this your answer may show AM or PM. To correct this mistake:

1. Simply right click the cell. 2. Click **Format Cells**. 3. Make sure you are on **Custom**. Click in the **Type** box and remove the AM/PM. See the red rectangle below. 4. Click OK.

See the screenshot below.

Excel format cells time

Excel – YouTube video – calculate the difference in time

YouTube video below shows how to calculate the difference in time from two cells with time in them. Example: 4:25 pm – 1:18 pm. If you go over midnight (11pm to 3am), you will end up with a lot of pound symbols. Widening the column won’t help with the pound symbols. You have to write an IF Statement which is also shown in the video.

Excel - calculate difference in time across midnight by Chris Menard on YouTube

Use HOUR and MINUTE Function in Excel

Finally, you should know that you can use the Hour and Minute Functions in Excel.

  • =HOUR(B2-A2) will show the difference in the hours unit between two times. This value cannot exceed 24 hours.
  • =MINUTE(B2-A2) will show the difference in the minutes unit between two times. This value cannot exceed 60 minutes.
Hours and Minutes

Put in current date in Excel

1. The current date in Excel. just use **CTRL + ;** 2. The current time is **CTRL + SHIFT + ;**

Both are static and will not change automatically.

Put in current date in Excel and it updates automatically

To put in the current date in Excel and have it automatically update the date when you open the file use **=TODAY()** function.

Read more

Copilot Skills in PowerPoint - Live Stream on October 20, 2026

Copilot Skills in PowerPoint - Live Stream on October 20, 2026

𝗠𝗼𝘀𝘁 𝗣𝗼𝘄𝗲𝗿𝗣𝗼𝗶𝗻𝘁 𝘂𝘀𝗲𝗿𝘀 𝗸𝗻𝗼𝘄 𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗰𝗮𝗻 𝗰𝗿𝗲𝗮𝘁𝗲 𝘀𝗹𝗶𝗱𝗲𝘀. 𝗙𝗮𝗿 𝗳𝗲𝘄𝗲𝗿 𝗸𝗻𝗼𝘄 𝗮𝗯𝗼𝘂𝘁 𝘁𝗵𝗲 𝟴 𝗯𝘂𝗶𝗹𝘁-𝗶𝗻 𝗖𝗼𝗽𝗶𝗹𝗼𝘁 𝗦𝗸𝗶𝗹𝗹𝘀 𝘁𝗵𝗮𝘁 𝗰𝗮𝗻 𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲𝗹𝘆 𝗰𝗵𝗮𝗻𝗴𝗲 𝗵𝗼𝘄 𝘆𝗼𝘂 𝗯𝘂𝗶𝗹𝗱, 𝗶𝗺𝗽𝗿𝗼𝘃𝗲, 𝗮𝗻𝗱 𝗽𝗿𝗲𝘀𝗲𝗻𝘁 𝗮 𝗱𝗲𝗰𝗸. Join me live on October 20, 2026, at Noon Eastern as I demonstrate each Copilot Skill and show practical ways to use them in your presentations. PDF of the 8 Copilot Skills in Pow

By Chris Menard