The phrase “selected cell how many minutes” usually means you want Excel to show the time in a selected cell as a number of minutes, or you want to know how many minutes are represented by a time value in that cell. The direct answer: select the cell, go to the Home tab, click the Number Format dropdown, choose More Number Formats, select Custom, and enter [m] to display total minutes, or use a formula like =A1*1440 to convert a time in cell A1 to minutes.
Why Excel Shows 12:00 AM Instead of Minutes
Excel stores times as fractions of a 24-hour day. 6:00 AM is stored as 0.25, noon as 0.5, and 6:00 PM as 0.75. When you type a number like 90 into a cell and format it as a time, Excel interprets 90 as 90 days, not 90 minutes. That is why you often see 12:00 AM or a weird date. To get minutes, you must either enter the time with a colon (e.g., 1:30 for 1 hour 30 minutes) or explicitly convert the number.
How to Convert a Time Value to Minutes
If you have a time in a cell (like 1:30), you can convert it to total minutes using a simple multiplication. Since one day has 24 hours and each hour has 60 minutes, one day has 1440 minutes.
- Assume the time is in cell A1.
- In another cell, type:
=A1*1440 - Press Enter. If A1 contains 1:30, the result is 90.
Make sure the result cell is formatted as a number, not as a time. If it shows 90:00:00, right-click the cell, choose Format Cells, select Number, and set decimal places to 0.
Using the [m] Custom Format to Show Total Minutes
If you do not want a separate formula column, you can change the display of the time cell itself. The custom format [m] shows the total minutes elapsed, ignoring hours and days. For example, if the cell contains 2:15, formatting it with [m] will display 135.
- Select the cell or range with time values.
- Press Ctrl+1 (or Cmd+1 on Mac) to open Format Cells.
- Go to the Number tab, select Custom.
- In the Type box, type
[m]and click OK.
Note: This only changes the display; the underlying value remains a fraction of a day. If you copy the cell and paste it elsewhere, the pasted value will be the original time, not the minutes.
How to Calculate Minutes Between Two Times
A common need is to find how many minutes have passed between a start time and an end time. If start time is in A1 and end time is in B1, the formula is:
=(B1-A1)*1440
This works as long as the end time is on the same day as the start time. If the shift crosses midnight (e.g., 11:00 PM to 1:00 AM), use this formula instead:
=(B1-A1+(B1<A1))*1440
The (B1<A1) part adds 1 (one full day) when the end time is earlier than the start time, effectively adding 24 hours.
Converting Minutes to a Time Value
Sometimes you have a number of minutes (like 135) and want to display it as 2:15. To convert minutes to a time value, divide by 1440. For example, if cell C1 contains 135, the formula =C1/1440 returns 0.09375, which formatted as h:mm shows 2:15.
To format the result, select the cell, press Ctrl+1, choose Time, and select the 1:30 PM format or a custom format like h:mm.
Common Mistakes and Misconceptions
One frequent error is using HOUR and MINUTE functions expecting total minutes. The MINUTE function returns only the minute part (0–59), not the total. For example, =MINUTE(A1) on 1:30 returns 30, not 90. To get total minutes, use the multiplication method or the [m] format.
Another misconception is that typing 90 and formatting as time gives 1:30. It does not; it gives 90 days. Always enter times with a colon or use a formula.
Frequently Asked Questions
How do I show total minutes in a cell without changing the original time?
Use a helper column with the formula =A1*1440 and format the helper as a number. This leaves your original time intact.
Why does my formula return 0 for minutes?
If you multiply a time by 1440 and get 0, the cell is probably formatted as text. Check that the time is actually a time value, not text. You can test with =ISNUMBER(A1); if it returns FALSE, the cell is text. Convert it using =TIMEVALUE(A1).
Can I use the [m] format in Excel for the web?
Yes, the custom format [m] works in Excel for the web. The steps are the same: select the cell, go to Home > Number Format > More Number Formats > Custom.
How do I calculate minutes between two dates and times?
If you have full dates and times (e.g., 2025-01-01 8:00 and 2025-01-02 9:30), simply subtract and multiply by 1440. The date part is included in the serial number, so =(B1-A1)*1440 works across days.
What is the difference between [m] and mm in a custom format?[m] shows total minutes (e.g., 135 for 2:15), while mm shows minutes within an hour (e.g., 15 for 2:15). Use [m] when you want the total elapsed minutes.
Does the formula work with negative time differences?
If the end time is earlier than the start time and you do not use the (B1<A1) adjustment, you get a negative number. To display negative times, go to File > Options > Advanced and check “Use 1904 date system”. This is a global setting, so use it cautiously.
Related
- Python Update Empty Dictionary: 4 Ways & When to Use Each
- Google Sheets Array Formula: How to Use It
- Snowflake String to Number: CAST and TO_NUMBER Explained
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Create Small Labels in Microsoft Word EasilyTo create small labels in Word, open Mailings > Labels, choose a label product that matches your sheet,…
- Excel Workbook Sheet Limit: What Sets the Maximum?Modern Microsoft Excel for Microsoft 365 on Windows has no fixed maximum number of sheets in a workbook:…
- Excel Import CSV: Does the First Row Become Headers?When you open a CSV file directly in Excel, its first row appears in row 1, but Excel…
- Custom Freeze Panes in Excel: How to Set ThemTo create custom freeze panes in Excel for Microsoft 365 on Windows, select the cell immediately below the…
- How to Find the Center of a Page in Excel for PrintingTo center worksheet content on a printed page in Excel for Microsoft 365 on Windows, open Page Layout…
- Google Sheets Can’t Open Apps Script? Fixes That WorkYes—Google Sheets can open Apps Script in a web browser: open the spreadsheet and choose Extensions > Apps…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.