To subtract 2 hours from a time in Excel, use a formula like =A1-TIME(2,0,0) or =A1-2/24, then format the result cell as a time. Both work because Excel stores times as fractions of a day, so two hours is exactly 2/24. Pick whichever you find easier to read — TIME() is clearer about your intent, while -2/24 is quicker to type. The rest of this guide covers where people get stuck: cells that show a string of hashes, results that wrap around midnight, and the difference between a time value and a date-and-time value.
What You'll Need
- Excel on any platform — Windows, Mac, Excel for the web, iPad, or Android. The formulas below are identical across all of them.
- A cell containing a real time value, not text. If you typed
9:30into a cell, Excel stores it as a time automatically. If the time was pasted from another system or exported from a database, it may be plain text and needs converting first. - Basic familiarity with entering a formula (starting with
=) and applying a number format.
Step-by-Step
- Check that your source cell holds a real time. Click it and look at the formula bar. If time values in the column are right-aligned by default, they are genuine numeric times. If they are left-aligned, Excel may be treating them as text. You can confirm with
=ISNUMBER(A1)— it returns TRUE for a real time and FALSE for text. - Click the cell where you want the result — for example B1 if your times are in column A.
- Type one of the two working formulas. With the time in A1, enter
=A1-TIME(2,0,0). The three arguments are hours, minutes, and seconds, soTIME(2,0,0)means two hours exactly. Alternatively type=A1-2/24, which subtracts the same two hours because a full day equals 1. - Press Enter. The result may appear as a decimal number such as 0.354167 instead of a time. That is expected — the formula is correct, the cell is just displaying the underlying value.
- Apply a time format. With the result cell selected, go to the Home tab and open the number format dropdown in the Number group, then choose Time. On Mac the control sits in the same ribbon area. If you prefer the dialog, press Ctrl+1 (Windows) or Cmd+1 (Mac), choose Custom, and type
h:mmorhh:mmin the Type box. Menu labels vary slightly between versions, so look for the number format and Custom category rather than expecting an exact match. - Copy the formula down the column. Drag the small fill handle at the bottom-right corner of the result cell, or double-click it to fill alongside your data. Relative references adjust automatically, so row 2 uses A2, row 3 uses A3, and so on.
- Read the result. A start time of 14:30 becomes 12:30, 09:15 becomes 07:15, and 01:00 becomes 23:00 because the clock wraps backwards past midnight. The wrap is normal for time-only values.
- If you need the result to keep the correct date — say, subtracting two hours from 01:00 where the answer should be 23:00 on the previous day — make sure the source cell contains a date and time together. Enter it as
2026-03-04 01:00(or your region's date format followed by a space and the time), and format the result with a date-and-time format such asm/d/yyyy h:mm. Excel will then show the earlier date instead of wrapping.
Common Mistakes
Subtracting a plain number of minutes. Typing =A1-2 subtracts two whole days, not two hours, because 2 means 2.0 days in Excel's time system. The answer will look wildly wrong.
Formatting the source column as Text. If the cell containing the time is formatted as Text before you type, Excel stores the entry as a string. The formula then returns #VALUE!. Reformat the cell to Time or General and re-enter the value.
Column of hashes. A result showing ##### is not an error — the column is simply too narrow. Widen it by double-clicking the boundary between column headers.
Getting a negative time. Excel's 1900 date system (the default on Windows) refuses to display negative times and shows ##### instead, even in a wide column. This happens when a time-only value subtracts below midnight. Two fixes: convert the time to a full date-and-time as in step 8, or switch the workbook to the 1904 date system under File > Options > Advanced (on Mac, Excel > Preferences > Calculation), which permits negative times but shifts every date in the file, so use it on new workbooks rather than existing ones.
Overwriting the original. Typing over the source column with constants loses the ability to audit the calculation. Keep the original times and put the adjusted ones in a separate column.
Pasting results as values without formatting. If you paste results into another workbook or a report, the time format sometimes disappears. Reapply the Time or Custom format after pasting.
Tips
Use TIME() when you want the formula to be self-documenting. A colleague reading =A1-TIME(2,0,0) instantly knows two hours are being removed; =A1-2/24 takes a moment longer.
For a subtractable amount stored in its own cell — say C1 holds 2:00 — simply write =A1-C1. That makes it easy to change the shift length without editing every formula. Keep C1 formatted as a time so it reads correctly.
To subtract hours and minutes together, add all three arguments: =TIME(2,30,0) removes two and a half hours. Excel also accepts oversized arguments, so =TIME(0,150,0) removes two and a half hours as well.
If you need a running total across many rows, for example elapsed time after an adjustment, sum the adjusted values and format the total as [h]:mm — the square brackets stop the total wrapping at 24 hours and let it show something like 37:45.
For current-time calculations, =NOW()-TIME(2,0,0) gives the time two hours ago and updates whenever the sheet recalculates.
Turn on error checking before you commit. Press Ctrl+` (the accent key) to toggle formula view and spot any cell that is text rather than a calculation.
Troubleshooting
The formula returns #VALUE!. One of the operands is text. Run =ISNUMBER() on the source cell. If it returns FALSE, retype the time, or strip stray spaces with =TIMEVALUE(TRIM(A1)) and use that as the new source. Times copied from web pages often carry non-breaking spaces that break parsing.
The result is a decimal, not a clock time. The calculation worked; the format is wrong. Select the cell, open the number format dropdown on the Home tab, and pick Time. Pressing Ctrl+Shift+2 applies a default time format in one keystroke on most layouts.
The result shows ##### even in a wide column. This is almost always a negative time. Add a date to the source value or switch to the 1904 date system as described above. A quick diagnostic is to temporarily format the cell as General — a negative decimal confirms the diagnosis.
The answer is off by 24 hours. You are mixing date-and-time values with time-only values. Excel converts a date-time to a serial number where time is the fractional part, so subtracting two hours from a cell that includes a date keeps the date component and behaves differently from a bare time. Standardise the whole column to one style before subtracting.
Copying the formula produces the same answer in every row. The references were made absolute with dollar signs. Change $A$1 to A1 so the reference moves down with the fill.
Times entered as 930 instead of 9:30. Excel reads that as a number. Re-enter with a colon, or convert with =TIME(INT(A1/100),MOD(A1,100),0). Once converted, the subtraction formula behaves normally.
Results look right but a real spreadsheet app disagrees. Check that you are subtracting from a time value, not from a text label generated by a lookup. Lookups often export display strings, so wrap the lookup result in TIMEVALUE() before doing arithmetic.
Frequently Asked Questions
Can I subtract 2 hours from a time in one keystroke?
No — there is no built-in shortcut for a fixed subtraction. Use a formula in an adjacent column and fill it down. That is the quickest reliable route.
Why does 01:00 minus two hours show ##### instead of 23:00?
Excel's default date system cannot display negative times, and the time-only value falls below zero when it passes midnight. Add a date to the source value so the calculation has a valid earlier day to land on, and format the result with a date and time.
Does subtracting 2/24 give exactly two hours?
Yes. Because a day is stored as 1, one hour is 1/24 and two hours is 2/24. This is mathematically identical to TIME(2,0,0). The only practical difference is readability; both formulas produce the same stored value.
How do I subtract 2 hours without changing the original cell?
Put the formula in a new column. Excel formulas never alter the referenced cell unless you overwrite it. If you need a hard-coded value rather than a live formula, copy the result and use Paste Special > Values into the destination, then format that column as a time.
Will the formula work in Excel for the web and on mobile?
Yes. TIME(), /24, and number formats behave the same in the browser and mobile versions. The formatting controls are in a slimmer toolbar, so look for the number format option near the Home controls rather than expecting the desktop ribbon layout.
Can I subtract 2 hours from a whole column at once?
Yes. Enter the formula once in the first result cell, then select the cell and drag the fill handle down the column, or double-click the handle to fill to the last contiguous row. Do not type the formula into every row manually — that invites inconsistent references.