How To Use AutoSum And The SUM Function In Excel (2026)

AutoSum adds up a column or row of numbers with two clicks and the Enter key.

The SUM function does the same job when you want to type the formula yourself or add several ranges.

This guide covers both, plus what SUM ignores, how formulas copy, and how to add hours.

Table of Contents

Quick answer: add numbers in Excel

GoalWhat to do
Total a columnSelect the empty cell below the numbers, then Home > AutoSum, then Enter
Total a rowSelect the empty cell to the right of the numbers, then Home > AutoSum, then Enter
Add two rangesType =SUM(A2:A4,C2:C3) and press Enter
Add a few numbersType a formula such as =12.99+16.99

Use AutoSum on a column or row

  1. Select the cell directly below a column of numbers, or directly to the right of a row.
  2. On the Home tab, select AutoSum.
  3. Press Enter to show the result.

AutoSum enters a formula that uses the SUM function, and Excel highlights the cells it is adding.

You can read the formula in the formula bar.

Microsoft’s example selects B7 under an Entertainment budget and shows 95.94 after Enter.

AutoSum also sits on the Formulas tab, and the dropdown there offers Sum.

Change the range AutoSum picked

Excel guesses the range, and the guess is not always the one you want.

Hold Shift and press an arrow key to extend or shrink the selection, then press Enter.

AutoSum does not work on non-contiguous ranges, so use the SUM function for those.

Total several columns at once

Select several cells in the bottom row, such as B7 and C7, and apply AutoSum once.

Excel totals both columns together.

You can also copy one total across, because cell references update when a formula is copied.

Copying the B7 formula to C7 totals C3:C6 in Microsoft’s sample.

Type the SUM function yourself

The syntax is SUM(number1,[number2],…), and you can include up to 255 arguments.

Each argument can be a number, a cell reference or a range.

  1. Click a cell and type =SUM( to begin.
  2. Type the first range, such as A2:A4, or drag across the cells.
  3. Type a comma, then add the second range, such as C2:C3.
  4. Type a closing parenthesis and press Enter.

Microsoft’s sample =SUM(A2:A4,C2:C3) returns 39787.

Arguments can be mixed, as in =SUM(A2:A4,2429,10482).

Why SUM beats typing plus signs

SituationPlus-sign formulaSUM function
A cell contains textReturns #VALUE!Ignores the text and adds the numbers
A referenced row is deletedReturns #REF!Adjusts automatically
A row is inserted inside the rangeDoes not include itIncludes it
Cells in a long listEasy to mistypeUse a range such as A1:A3

For example, =A1+A2+A3 fails with text in any cell, while =SUM(A1:A3) keeps working.

See our guide to #N/A, #VALUE! and #REF! errors if you hit one.

What SUM counts and what it ignores

FormulaResultWhy
=SUM(3, 2)5Adds the two numbers
=SUM(“5”, 15, TRUE)21Text and TRUE typed directly are converted to numbers
=SUM(A2:A4)40Adds -5, 15 and 30
=SUM(A5,A6, 2)2Text and logical values inside cell references are ignored

If your numbers are stored as text in cells, SUM skips them, so see how to convert numbers stored as text in Excel.

Use Excel as a calculator

Start the formula with an equals sign, then type numbers and operators.

OperatorExampleResult
+=4+6+212
–=18-126
*=8*324
/=45/59
% with *=15%*203
SQRT=SQRT(64)8

Excel has no SUBTRACT function, so use the minus sign.

Inside SUM, a minus sign makes a negative number, as in =SUM(12,5,-3,8,-4).

Add hours and minutes

Excel stores times as fractions of a day.

To add hours and minutes and show the total, use SUM without multiplying, as in =SUM(A6:C6), which shows 5:36 in Microsoft’s example.

To turn a time difference into total hours, multiply by 24, as in =((B2-A2)+(D2-C2))*24, which gives 8.50 hours in the sample.

Add only the visible cells

Use SUBTOTAL when you want to leave out filtered rows.

In an Excel table total row, the functions you pick from the Total drop-down are entered as subtotals automatically.

Our guide to the Subtotal command in Excel covers the function numbers.

Add only cells that meet a condition

Use SUMIF for one condition, such as total sales of one product.

Use SUMIFS for more than one condition, such as one product in one region.

Our SUMIF and COUNTIF guide shows the basics.

For percentages of a total, see how to calculate a percentage in Excel.

Sources

Microsoft Support: Use AutoSum to sum numbers in Excel, SUM function, Use the SUM function to sum numbers in a range, Ways to add values in an Excel spreadsheet and Use Excel as your calculator.

Leave a Reply

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