Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Subtract Excel Cells: Percentages, Dates & Times

· 5 min read · Home Tech

In this article
  1. Why Subtraction in Excel Isn’t Always Simple
  2. Subtracting Plain Numbers
  3. Subtracting Percentages
  4. Subtracting Dates
  5. Subtracting Times
  6. Common Mistakes and How to Avoid Them
  7. Frequently Asked Questions

This guide explains how to subtract cells in Microsoft Excel, covering plain numbers, percentages, dates, and times. You’ll learn the correct formulas for each type, how to avoid common errors like wrong cell formats, and how to get results that display exactly what you expect.

Why Subtraction in Excel Isn’t Always Simple

At its core, subtraction in Excel is just the minus operator (-). Typing =A1-B1 works for numbers. But percentages, dates, and times are stored differently than they appear. A date is a serial number (days since 1900-01-01), a time is a decimal fraction of a day, and a percentage is a decimal value with a percent format. If you treat them as plain numbers, you’ll get confusing results. This article breaks down each case so you can subtract confidently.

Subtracting Plain Numbers

For simple numeric subtraction, use the minus sign. For example, to subtract B1 from A1, enter =A1-B1 in a cell. You can also subtract multiple cells: =A1-B1-C1. Use parentheses to control order: =(A1-B1)*C1 multiplies the difference by C1. For subtracting a constant, just type it: =A1-100.

Be careful with negative results. If A1 is less than B1, the result is negative. That’s correct. To always show a positive difference, use =ABS(A1-B1).

Subtracting Percentages

Percentages in Excel are stored as decimal values (e.g., 20% is 0.2). When you subtract a percentage from a number, you have two common scenarios:

  • Subtract a percentage value from another percentage: =A1-B1 works directly if both cells are formatted as percentages. For example, 30% - 10% = 20%.
  • Subtract a percentage of a number from that number: If A1 contains 100 and B1 contains 20%, to get 100 minus 20% of 100, use =A1*(1-B1), which gives 80. Alternatively, =A1-A1*B1 also works.

If you type =100-20% directly, Excel interprets 20% as 0.2 and returns 99.8, not 80. That’s a common mistake. Always multiply by the number when you mean “percentage of.”

Subtracting Dates

Dates are stored as serial numbers. To find the number of days between two dates, simply subtract the earlier date from the later one: =B1-A1. The result is a number of days. If you want the result in weeks, divide by 7: =(B1-A1)/7. For months or years, use the DATEDIF function: =DATEDIF(A1,B1,"m") gives whole months, "y" gives whole years.

To subtract a specific number of days from a date, use =A1-30 to get the date 30 days earlier. For business days (excluding weekends), use =WORKDAY(A1,-30) to go back 30 workdays.

Subtracting Times

Times are stored as fractions of a day (e.g., 6:00 AM is 0.25). To find the duration between two times, subtract the earlier time from the later: =B1-A1. Format the result cell as “h:mm” to see hours and minutes. For example, if A1 is 9:00 AM and B1 is 5:30 PM, the result is 8:30 (8 hours 30 minutes).

If the time spans midnight (e.g., from 10:00 PM to 2:00 AM), the simple subtraction gives a negative value. Use the formula =MOD(B1-A1,1) to get the correct positive duration. This works because MOD returns the remainder after dividing by 1 (a full day).

To subtract a certain number of hours from a time, use =A1-TIME(2,0,0) to subtract 2 hours. The TIME function takes hours, minutes, seconds.

Common Mistakes and How to Avoid Them

  • Wrong cell format: If you subtract dates but the result shows as a date (like 1/15/1900), change the result cell format to “Number.” Similarly, if you subtract times and see a decimal like 0.354, format as “Time.”
  • Using text instead of numbers: If cells contain text like “10” with an apostrophe, Excel treats it as text and subtraction fails. Use the VALUE function to convert: =VALUE(A1)-VALUE(B1).
  • Subtracting a percentage incorrectly: As noted, =A1-B1 when B1 is a percentage subtracts the decimal, not the percentage of A1. Use =A1*(1-B1) for “decrease by B1%.”
  • Time subtraction over midnight: Forgetting the MOD function gives negative times. Always use =MOD(B1-A1,1) when times cross midnight.

Frequently Asked Questions

How do I subtract a percentage from a price in Excel?

If the price is in A1 and the discount percentage in B1 (e.g., 20%), use =A1*(1-B1). This gives the price after the discount. For example, 100 with 20% discount gives 80.

Why does my date subtraction show a date instead of a number?

Excel automatically formats the result as a date because the source cells are dates. Select the result cell, go to the Home tab, and change the number format to “General” or “Number” to see the day count.

How do I subtract hours and minutes from a time in Excel?

Use the TIME function: =A1-TIME(2,30,0) subtracts 2 hours and 30 minutes from the time in A1. Ensure the result cell is formatted as “h:mm” to display correctly.

Can I subtract two columns of dates to get days between them?

Yes. If column A has start dates and column B has end dates, enter =B1-A1 in column C and drag down. Format column C as “Number” to see the days. For whole months, use =DATEDIF(A1,B1,"m").

What does the #VALUE! error mean when subtracting?

It usually means one of the cells contains text that Excel can’t interpret as a number. Check for spaces, apostrophes, or non-numeric characters. Use the VALUE function to convert text numbers, or clean the data.

How do I subtract percentages from each other in Excel?

Simply use =A1-B1 if both cells are formatted as percentages. Excel handles the decimal conversion automatically. For example, 25% minus 10% gives 15%.