How to Sum in Excel (All Things You Need to Know)

Here’s the simplest use of the SUM function to sum a range of values.

Sum in Excel


Download the Practice Workbook


Example 1 – Sum a Range of Cells with AutoSum Feature

  • Select a cell where you want to apply AutoSum.
  • Go to the Home tab.
  • Click AutoSum under the Editing group.

AutoSum feature

  • This will insert the SUM formula.
  • Press Enter.

Sum inserted automatically

Excel will automatically calculate the sum of the range.

Sum in Excel


Example 2 – Sum Selected Cells from Excel Properties

  • Click on the column name that contains your data.
  • At the bottom section of the worksheet window, Excel will show you some properties of the selected range. You can get the sum from here.

Find sum from property


Example 3 – Sum a Range or Entire Column in Excel

  • Apply the following formula to calculate the sum of the range D5 to D11.
=SUM(D5:D11)

SUM function


Example 4 – Find a Sum of Filtered Cells with the SUBTOTAL Function

=SUBTOTAL(9,D5:D14)

We found the Total Quantity => 26.

We want to find the sum of Monitor only, so we need to filter the Item column for Monitor.

  • Click on the filter icon (the dropdown arrow) on the Item column.

SUBTOTAL function

  • Mark only Monitor and click OK.

Filtering cell

  • This command will calculate the sum only for Monitor. So the total output will be decreased as now the concerning item is only the Monitor.

Finding sum of filtered cell


Example 5 – Convert a Range to a Table for Calculating a Sum

  • Select a random cell in the range.
  • Go to the Insert tab and click Table.

Insert table

  • Click OK on the Create Table dialog box.

Create table dialog box

  • After creating a Table, go to the Table Design tab and put a checkmark on Total Row.

This will insert a new column that will show you the sum of the numbers.

Mark Total Rows to find sum


Example 6 – Calculate the Sum of Running Factors

The dataset below represents the statement of a balance sheet. In column B, we have some transactions.

  • Use the formula below for the first factor.
=SUM(C$5:C5)
  • Drag the Fill Handle tool down. This will Autofill the formula and calculate the running total for the factors.

Calculating running total


Example 7 – Calculate a Sum Based on a Condition in Excel

Case 1 – Use the SUMIF Function to Match Single Criterion

We want to get the sum of product quantity for Mike. So, we have only a single criterion here.

=SUMIF(B5:B14,B5,D5:D14)

This formula calculates the sum in the range D5:D14 based on the cell value of B5.

Sum for single criterion


Case 2 – Use the SUMIFS Function to Match Multiple Criteria

  • If you want to calculate the total quantity of Monitor purchased by Mike, in that case, you can use the SUMIFS function.
=SUMIFS(D5:D14,B5:B14,B9,C5:C14,C9)

Using SUMIFS to sum based on multiple criteria


Example 8 – Sum Every N-th Row in Excel

  • Apply the following formula to sum every second row from your dataset.
={SUM(D5:D14*(MOD(ROW(D5:D14),2)=0))}
  • This is an array formula. Press Ctrl + Shift + Enter to apply it, unless you’re using Excel 365.

Sum every nth row


Example 9 – Sum the Largest Values in Excel

  • Apply the following formula to find the top 3 largest values in D5:D14.
=SUM(LARGE(D5:D14,{1,2,3}))

Sum largest values


Example 10 – Sum a Range with Text Values and Errors in Excel

  • Use the following formula to ignore non-number values.
=SUM(IFERROR(D5:D14,0))

Sum range with text and errors


Frequently Asked Questions

What is the sum range?

The sum range refers to the range of cells that you want to add together. It is the set of cells that you specify as the input for the function to calculate the sum.

What is subtotal in Excel?

In Excel, the SUBTOTAL function is used to calculate various types of subtotals within a range of data. The SUBTOTAL function is particularly useful when working with filtered data or when you want to calculate subtotals for specific sections within a larger dataset.


Key Takeaways from the Article

  • SUMIF and SUMIFS functions are used to sum cells based on condition.
  • The SUBTOTAL function is used to find the sum of filtered cells.
  • AutoSum feature inserts the SUM function to calculate the sum.
  • Texts and errors can be handled with the IFERROR function.

Sum in Excel: 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