Excel Add and Subtract (Complete Guideline)

Here’s a simple overview of using common functions and operators to add and subtract ranges.

Excel add and subtract


Download the Practice Workbook


How to Add in Excel

Example 1 – Add Numbers in Excel

Method 1 – Add Numbers with an Operator

  • You can connect a series of numbers directly with the addition operator (+).
=2+3+4+5

Add numbers with operator

  • Or, you can also use relevant cell references to add numbers using an operator.
=C5+C6+C7+C8

Add numbers using cell reference


Method 2 – Add Numbers Using SUM Function

  • To add numbers using the SUM function in the range C5:C9, apply the following formula:
=SUM(C5:C9)

Add numbers using SUM Function


Example 2 – Get a Quick Total in Excel

  • To get the sum of a range with just one click, select the range and navigate to the bottom of the Excel window. Excel properties will show the sum of the selected range.

Get a quick total in Excel


Example 3 – Using the AutoSum Feature

  • Select the cell under the range.
  • Go to the Home tab.
  • Click the AutoSum feature under the Editing group.

This command will insert the sum function for the range.

Add total using AutoSum feature


Example 4 – Add Times in Excel

  • Use the cell reference and connect them with the Addition operator (+).
=B5+C5

Add time in Excel


Example 5 – Add Days to a Date in Excel

You can add days to date using 3 different approaches:

Add days to date in Excel


Example 6 – Add a Percentage in Excel

  • To add the percentage of a number to that number, apply the following formula:
=C5+C5*$D$5

Use the absolute cell reference if the percentage value is in a separate cell.

Add percentage in Excel


How to Subtract in Excel

Example 1 – Subtract Columns in Excel

  • If you want to subtract two specific columns, subtract the first cells from the relevant columns first.
=D5-C5
  • Drag the Fill Handle tool down to copy the formula to the other cells.

Subtract columns in Excel


Example 2 – Subtract the Same Cell from a Column

  • Lock the cell to subtract in the formula by pressing the F4 key and then apply the subtraction operator.
=C5-$F$5

Subtract same cell from a column


Example 3 – Subtract Multiple Cells from the Same Cell

  • If you want to subtract multiple cells from the same cell, put that cell in the first position in the formula and then keep using the subtraction operator consecutively to connect the cells to subtract.
=E5-C5-C6-C7-C8

Subtract multiple cells from same cell


Example 4 – Subtract Times in Excel

  • Whether your time format is 24 hours or 12 hours, subtract them with the subtraction operator just like you subtract numbers.
=B5-C5

Subtract time in Excel


Example 5 – Subtract Dates in Excel

To subtract dates in Excel, you can follow 3 ways:

Subtract date in Excel


Example 6 – Subtract a Percentage in Excel

  • To subtract the percentage of a number from that number, apply the formula below.
=C5-C5*$D$5

Subtract percentage in Excel


Example 7 – Subtract a Matrix in Excel

  • When you have two matrices (two sets of values), apply the following formula:
=(B5:D7)-(F5:H7)

Matrix subtraction

This is an array formula. Press the Ctrl + Shift + Enter key to apply it (in versions other than Excel 365) and you will see curly brackets which indicate the array formula.


Example 8 – Subtract a Portion of Cell Value

Case 8.1 – Case-Sensitive

  • To subtract text from a cell value, use a combination of TRIM and SUBSTITUTE functions.
=TRIM(SUBSTITUTE(B5,C5,""))

 💡 Formula Breakdown

SUBSTITUTE(B5, C5, “”) replaces the occurrences of the text in cell C5 with an empty string (“”) and returns => Dell

TRIM function removes any excess spaces from the result of the SUBSTITUTE function.

TRIM(SUBSTITUTE(B5,C5,””)) = Dell 

Subtract portion of cell value (case sensitive)


Case 8.2 – Case-Insensitive

  • Apply a combination of TRIM, REPLACE, SEARCH, and LEN functions.
=TRIM(REPLACE(B5,SEARCH(C5,B5),LEN(C5),""))

 💡 Formula Breakdown

The SEARCH function is used to find the position of the text in C5 within the text in B5.
SEARCH(C5,B5) => 6

LEN(C5) returns the length of the text in C5, which represents the number of characters to be replaced=> 6

TRIM(REPLACE(B5,SEARCH(C5,B5),LEN(C5),””)) = Dell

Subtract portion of cell value (case insensitive)


Example 9 – Subtract Two Lists in Excel

  • Use a combination of IF and COUNTIF functions.
=IF(COUNTIF($C:$C, $B5)=0, "Not Matched", "")

 💡 Formula Breakdown

The COUNTIF($C:$C, $B5) is used to count the number of cells within the range $C:$C (column C) that match the value in cell $B5.

=0: This part of the formula checks if the count from the COUNTIF function is equal to zero. If the count is zero, it means that there are no matching cells found in column C.

IF(COUNTIF($C:$C, $B5)=0, “Not Matched”, “”): The IF function evaluates the condition (COUNTIF($C:$C, $B5)=0) and returns one of two results based on the condition

Subtracting two lists


How to Add and Subtract in One Formula in Excel

Example 1 – Add and Subtract Multiple Cells from One Cell

We want to add a range of multiple cells and then subtract the summation from a single cell.

  • Perform addition and subtraction in a single formula.
=C12-SUM(C5:C10)

Add and subtract multiple cells from one cell


Example 2 – Add and Subtract in Multiple Columns

We have two ranges of values (C5:C10 and D5:D10). We want to add the values by column and then subtract the summation of those values.

  • Apply the following formula:
=SUM(C5:C10)-SUM(D5:D10)

Frequently Asked Questions

How can I add or subtract numbers in Excel while ignoring errors?

You can use the IFERROR function to ignore errors.

Can I add or subtract numbers in Excel with decimal precision?

Yes, you can add or subtract numbers in Excel with decimal precision.


Takeaways from the Article

  • The addition operator (+) is used to combine values and find their sum, while the subtraction operator () is used to find the difference between values.
  • Formulas like “=SUM()” and “=A1-B1” allow you to add and subtract numbers in Excel.
  • You can perform addition and subtraction on multiple cells at once using the SUM function.

Excel Add and Subtract: Knowledge Hub


<< Go Back to How to Calculate in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Rafiul Hasan
Rafiul Hasan

Rafiul Hasan, holding a BSc in Naval Architecture and Marine Engineering from Bangladesh University of Engineering & Technology, contributes significantly to the ExcelDemy project with almost 1.6 years of dedicated work. Currently an Excel and VBA Content Developer, he has a passion for problem-solving. Authoring over 100 articles for ExcelDemy showcases expertise in Microsoft Office Suites and Data Analysis. In addition to content development, Rafiul actively engages with the ExcelDemy forum, offering valuable solutions to user queries and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo