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
- Use AutoSum on a column or row
- Change the range AutoSum picked
- Total several columns at once
- Type the SUM function yourself
- Why SUM beats typing plus signs
- What SUM counts and what it ignores
- Use Excel as a calculator
- Add hours and minutes
- Add only the visible cells
- Add only cells that meet a condition
- Sources
- More Word, Excel and PowerPoint guides
Quick answer: add numbers in Excel
| Goal | What to do |
|---|---|
| Total a column | Select the empty cell below the numbers, then Home > AutoSum, then Enter |
| Total a row | Select the empty cell to the right of the numbers, then Home > AutoSum, then Enter |
| Add two ranges | Type =SUM(A2:A4,C2:C3) and press Enter |
| Add a few numbers | Type a formula such as =12.99+16.99 |
Use AutoSum on a column or row
- Select the cell directly below a column of numbers, or directly to the right of a row.
- On the Home tab, select AutoSum.
- 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.
- Click a cell and type =SUM( to begin.
- Type the first range, such as A2:A4, or drag across the cells.
- Type a comma, then add the second range, such as C2:C3.
- 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
| Situation | Plus-sign formula | SUM function |
|---|---|---|
| A cell contains text | Returns #VALUE! | Ignores the text and adds the numbers |
| A referenced row is deleted | Returns #REF! | Adjusts automatically |
| A row is inserted inside the range | Does not include it | Includes it |
| Cells in a long list | Easy to mistype | Use 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
| Formula | Result | Why |
|---|---|---|
| =SUM(3, 2) | 5 | Adds the two numbers |
| =SUM(“5”, 15, TRUE) | 21 | Text and TRUE typed directly are converted to numbers |
| =SUM(A2:A4) | 40 | Adds -5, 15 and 30 |
| =SUM(A5,A6, 2) | 2 | Text 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.
| Operator | Example | Result |
|---|---|---|
| + | =4+6+2 | 12 |
| – | =18-12 | 6 |
| * | =8*3 | 24 |
| / | =45/5 | 9 |
| % with * | =15%*20 | 3 |
| 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.
More Word, Excel and PowerPoint guides
- How To Save Word And Excel Files To Your PC By Default (2026)
- How To Show The Formula Bar And Gridlines In Excel (2026)
- How To Fix Excel Arrow Keys Scrolling The Sheet (2026)
- How To Fix Excel Column Headings Showing Numbers (2026)
- Excel Error: There Isn't Enough Memory To Complete This Action
- How To Wrap Text And Merge Cells In Excel (2026)