Excel Convert Time Difference to Minutes Number
In this article
This article explains how to convert a time difference in Excel into a plain number of minutes, which is useful for payroll, billing, or scheduling calculations. You will learn the core formula, how to handle times that cross midnight, and how to avoid common errors. The answer is straightforward: multiply the time difference by 1440 (the number of minutes in a day) and format the result as a number, not as a time.
Why Excel Displays Time as a Fraction of a Day
Excel stores dates and times as serial numbers. A full day equals 1, so one hour is 1/24 (≈ 0.041667), one minute is 1/1440 (≈ 0.0006944), and one second is 1/86400. When you subtract two time values, the result is a fraction of a day. For example, if you subtract 9:00 AM from 10:30 AM, Excel returns 0.0625, which represents 1.5 hours. To get minutes, you multiply that fraction by 1440.
This is why simply subtracting two time cells and formatting the result as a number gives you a decimal like 0.0625, not 90. The conversion factor 1440 is the key to turning that decimal into a meaningful minute count.
The Basic Formula: Multiply by 1440
The core formula is:
= (End Time - Start Time) * 1440
Where:
- End Time is the later time (a time value or a cell reference).
- Start Time is the earlier time.
- 1440 is the number of minutes in a day (24 hours × 60 minutes).
For example, if cell A1 contains 9:00 AM and cell B1 contains 10:30 AM, the formula =(B1-A1)*1440 returns 90. This works because the time difference (0.0625) multiplied by 1440 equals 90 minutes.
After entering the formula, ensure the cell is formatted as a number (General or Number) so Excel doesn't automatically display it as a time. To do this, select the cell, press Ctrl+Shift+~ (or go to Home → Number Format → General).
Handling Times That Cross Midnight
A common issue arises when a shift starts at 10:00 PM and ends at 6:00 AM the next day. A simple subtraction =B1-A1 would return a negative value because Excel doesn't know the day changed. To fix this, use the MOD function:
= (MOD(End Time - Start Time, 1)) * 1440
The MOD function takes the remainder after division by 1, effectively wrapping around midnight. For example, with start time 10:00 PM (22:00) and end time 6:00 AM (06:00), the difference is -16 hours (-0.6667). MOD(-0.6667, 1) returns 0.3333, which is 8 hours. Multiply by 1440 to get 480 minutes.
Alternatively, you can use the formula =IF(End Time > Start Time, End Time - Start Time, 1 - Start Time + End Time) * 1440, but the MOD version is more concise and works for both cases.
Formatting the Result Correctly
Even after multiplying by 1440, Excel may still show the result as a time value (e.g., 90 might appear as 1:30 AM). This happens because the cell retains a time format. To fix this:
- Select the cell or range with the formula.
- Press Ctrl+1 to open Format Cells.
- Choose Number or General from the Category list.
- Set the desired number of decimal places (usually 0 for whole minutes).
- Click OK.
If you want minutes with decimals (e.g., 90.5 for 1 hour 30 minutes 30 seconds), keep the number format with 1-2 decimal places. Remember, the underlying value is always a number; the format only changes how it appears.
Common Mistakes and How to Avoid Them
Several pitfalls trip up users when converting time differences to minutes:
- Forgetting to multiply by 1440 – The most common error is subtracting times and expecting a minute count without the multiplication. Always include *1440.
- Wrong cell format – If the result looks like a time (e.g., 1:30), the cell is formatted as time. Change the format to Number.
- Using 60 instead of 1440 – Multiplying by 60 gives hours, not minutes. For minutes, always use 1440.
- Negative differences – If the end time is earlier than the start time without a date, the result is negative. Use the MOD function to handle overnight shifts.
- Text-formatted times – If your cells contain text like "9:00 AM" (with a leading apostrophe), Excel treats them as text and subtraction fails. Convert text to time using the TIMEVALUE function:
= (TIMEVALUE(B1) - TIMEVALUE(A1)) * 1440.
Alternative Methods: Using HOUR and MINUTE Functions
While multiplying by 1440 is the most direct method, you can also break the time difference into hours and minutes using the HOUR and MINUTE functions:
= HOUR(End Time - Start Time) * 60 + MINUTE(End Time - Start Time)
This formula works for differences within the same day. For example, a difference of 1 hour 30 minutes returns 90. However, this method fails for differences exceeding 24 hours because the HOUR function only returns values from 0 to 23. For multi-day durations, stick with the *1440 method, which handles any length correctly.
When to Use Each Approach
Choose the method based on your data:
- Same-day times: Use
=(End-Start)*1440. - Overnight shifts (no dates): Use
=MOD(End-Start,1)*1440. - Times with dates (e.g., 2025-03-01 22:00): A simple subtraction works because the date is included; just multiply by 1440.
- Durations over 24 hours: Use
=(End-Start)*1440where End and Start are full date-time values.
For most real-world scenarios, the MOD version is the safest because it handles both same-day and overnight cases without extra logic.
Frequently Asked Questions
How do I convert a time difference to minutes in Excel without using a formula?
You can use Excel's built-in time functions, but a formula is still required. The simplest is to subtract the start time from the end time, then multiply by 1440. There's no one-click button for this, but you can create a custom formula and copy it down a column.
Why does my formula return 0.0625 instead of 90?
That's the raw fraction of a day. You need to multiply by 1440 to get minutes. The formula =(B1-A1)*1440 will give you 90. If you see 0.0625, you likely forgot the *1440 part.
Can I convert a time difference to minutes with decimal seconds?
Yes. The *1440 method gives you a decimal number where the fractional part represents seconds. For example, a difference of 1 hour 30 minutes 30 seconds yields 90.5 minutes. Just format the cell with a number format showing 1-2 decimals.
What if my times are in different columns with dates?
If your cells contain both date and time (e.g., 2025-03-01 9:00), a simple subtraction works because the date is part of the value. The result will be a fraction of a day, so multiply by 1440 as usual. No MOD function is needed.
How do I convert a time value like 2:30 (2 hours 30 minutes) to 150 minutes?
If the cell contains a time value, use =A1*1440 where A1 is the time. Excel will interpret 2:30 as 2.5 hours, and multiplying by 1440 gives 150. If it's text, use =TIMEVALUE(A1)*1440.
Is there a way to do this without changing the original data?
Yes. Use a new column for the formula. The original time cells remain untouched. The formula references the original cells, so you can keep your data intact.