How to Use the SUM Function in Excel (Step-by-Step)

The SUM function in Excel is one of the most commonly used formulas and one of the first functions every Excel user should learn. It allows you to quickly add numbers together without manually calculating totals.

In this guide, you’ll learn:

  • What the SUM function does
  • How to write a SUM formula
  • How to sum a range of cells
  • How to use SUM with non-adjacent cells
  • Common mistakes to avoid
  • Real-world examples of SUM in action

By the end of this tutorial, you’ll be able to use the SUM function in Excel for everyday tasks confidently.

What the SUM Function Do in Excel

The SUM function adds numbers together. Instead of manually typing each number into a calculator, Excel can automatically total values stored in cells.

For example, if cells B2 through B6 contain numbers, the SUM function can add them instantly.

The syntax for the SUM function is:

Where:

  • number1 — The first number or range to add
  • number2 — Optional additional numbers or ranges

Most commonly, you’ll sum a range of cells, like this:

This tells Excel to add every number from cell B2 through B6.

Example Dataset Used in This Tutorial

You can download the sample data we’ll be using in this tutorial by clicking on this link—> SUM Function Data

How to Use the SUM Function to Add a Range

The most common way to use SUM is to total a column of numbers.

Follow these steps:

  1. Click cell B8
  2. Type:
  1. Press Enter

Excel will add all numbers from B2 through B6 and display the total.

How to Use SUM with Non-Adjacent Cells

Sometimes you need to add numbers from cells that are not next to each other.

For example, you might only want to total Pens, Markers, and Tape.

You can do this by listing individual cells separated by commas.

Example formula:

This adds values from:

  • B2
  • B4
  • B6

How to Use AutoSum in Excel

Excel includes a built-in AutoSum feature that automatically creates a SUM formula.

To use AutoSum:

  1. Click cell B8
  2. Go to the Formulas tab
  3. Click AutoSum
  4. Press Enter

Excel will automatically select the range B2:B6.

SUM Multiple Ranges at Once

The SUM function can total multiple ranges in one formula.

Example:

This adds:

  • B2 through B4
  • B5 through B6

Common SUM Errors and How to Fix Them

Even though SUM is simple, a few common mistakes can cause incorrect results.

Numbers Stored as Text

If numbers are stored as text, SUM will ignore them.

Signs numbers are stored as text:

  • Numbers aligned to the left
  • Green triangle warning icon

Fix:

  • Select the cells
  • Click the warning icon
  • Choose Convert to Number

Including Blank or Wrong Cells

If the wrong range is selected, totals may be incorrect.

Always verify:

matches your intended range.

Typing Instead of Selecting

Typing ranges manually increases the chance of mistakes.

Best practice:

Use your mouse to select the range instead of typing it.

Real-World Uses of the SUM Function

The SUM function is used in nearly every type of spreadsheet.

Common uses include:

  • Adding monthly expenses
  • Calculating total sales
  • Summing employee hours
  • Tracking inventory totals
  • Creating financial summaries

For example, a budget spreadsheet might use the sum function to total all expenses.

Download the Practice Workbook

You can download the sample data we’ll be using in this tutorial by clicking on this link —> SUM Function Data

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *