How to Sum Multiple Columns in Excel
By ExcelReady TeamUpdated 6 min read
The short answer
To sum multiple columns in Excel, give SUM a range that covers them all, like =SUM(B2:D5), which adds every number in columns B, C and D. For columns that aren't next to each other, separate the ranges with commas: =SUM(B2:B5,D2:D5). For a total per row, use =SUM(B2:D2) and fill it down.
Key takeaways
- One range can cover several columns: =SUM(B2:D5) adds all twelve cells.
- Separate columns that aren't side by side with commas: =SUM(B2:B5,D2:D5).
- Row totals use =SUM(B2:D2) filled down; column totals use =SUM(B2:B5) filled right.
- SUMIF adds only one column. For a condition across several columns, use SUMPRODUCT.
- Lock the grand total with $ when you divide by it, so the formula copies correctly.
On this page+
- The sample data
- How to sum multiple columns with one formula
- How to sum each row across columns
- How to sum each column
- How to sum columns that aren't next to each other
- How to sum multiple columns with a condition
- How to show each row's share of the total
- Why is my SUM of multiple columns wrong?
- Practise it
To sum multiple columns in Excel, you don't need one formula per column. A single SUM can take a range that spans several columns, like =SUM(B2:D5), or several ranges separated by commas. This guide shows every common case on one small sales sheet: a grand total, totals per row and per column, columns that aren't side by side, and totals that only count some rows.
The sample data#
All the examples use these monthly sales figures in A1:D5:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Rep | Jan | Feb | Mar |
| 2 | Ana | 120 | 150 | 130 |
| 3 | Ben | 90 | 110 | 100 |
| 4 | Chloe | 200 | 180 | 210 |
| 5 | Dev | 75 | 95 | 80 |
SUM ignores text and empty cells, so the names in column A never get in the way. The SUM function guide has the full syntax if you need a refresher.
How to sum multiple columns with one formula#
Give SUM a range that covers all the columns you want. The range runs from the top-left cell to the bottom-right cell:
=SUM(B2:D5)The result is 1,540: every number in Jan, Feb and Mar added together. Excel treats B2:D5 as one block of 12 cells, three columns wide and four rows tall.
You can type the range or select it with the mouse after typing =SUM(. To add a whole column without row numbers, write =SUM(B:D). That picks up new rows automatically, but don't put the formula inside columns B to D, or Excel warns about a circular reference (a formula that includes its own cell).
How to sum each row across columns#
To get a total for each rep, sum across the row and fill the formula down. In E2, type:
=SUM(B2:D2)Ana's total is 400. Select E2:E5 and fill down (Windows: Ctrl+D; Mac: ⌘D). Because the references are relative, row 3 becomes =SUM(B3:D3) and so on. Ben gets 300, Chloe 590 and Dev 250.
How to sum each column#
To total each month, sum down the column and fill the formula to the right. In B6, type =SUM(B2:B5) to get 485 for Jan. Select B6:D6 and fill right (Windows: Ctrl+R; Mac: ⌘R). Feb gives 535 and Mar gives 520.
AutoSum is faster. Click the cell under a column and press Alt+= on Windows or ⌘+Shift+T on Mac. Excel guesses the range and you press Enter.
A useful trick: select B2:E6, which is the numbers plus one empty row and one empty column, then use AutoSum once. Excel fills in every row total, every column total and the grand total in one go.
How to sum columns that aren't next to each other#
List each range inside one SUM, separated by commas. To add Jan and Mar but skip Feb:
=SUM(B2:B5,D2:D5)The result is 1,005 (485 + 520). SUM accepts up to 255 arguments, so you can keep adding ranges.
To select the ranges with the mouse, type =SUM(, drag over the first range, then hold Ctrl (Mac: ⌘) and drag over the second. Excel adds the comma for you.
Avoid =SUM(B2:B5+D2:D5). With a plus sign inside, Excel adds the two ranges cell by cell. That happens to work in Microsoft 365, but older versions can return a wrong total or #VALUE!, and any text cell in either range breaks it. Commas are the safe choice in every version.
How to sum multiple columns with a condition#
SUMIF can only add one column. If you give it a sum range several columns wide, such as =SUMIF(A2:A5,"Ben",B2:D5), Excel quietly uses just the first column and returns 90, not Ben's real total.
To add every month for one rep, use SUMPRODUCT:
=SUMPRODUCT((A2:A5="Ben")*B2:D5)The result is 300. The test A2:A5="Ben" gives TRUE for Ben's row and FALSE for the others. Multiplying turns TRUE into 1 and FALSE into 0, so only Ben's numbers survive, and SUMPRODUCT adds them up.
In Excel 2021 or Microsoft 365 you can also write =SUM(FILTER(B2:D5,A2:A5="Ben")). The article on how to filter and sum in one formula covers that approach. If you need to pull several columns back for one match, rather than add them, see VLOOKUP with multiple columns.
How to show each row's share of the total#
When you divide each row by a grand total, lock the total with dollar signs. Put the grand total =SUM(B2:D5) in E7. Then in F2:
=E2/$E$7Format it as a percentage. Ana's share is 26% (400 ÷ 1,540). When you fill down, E2 changes to E3, E4 and E5, but $E$7 stays fixed. Without the dollar signs, the next row would divide by E8, an empty cell, and show #DIV/0!. Press F4 (Mac: ⌘T) right after typing E7 to add the dollar signs.
Why is my SUM of multiple columns wrong?#
A wrong total usually comes from what is inside the range, not the formula. Check these:
- Numbers stored as text. SUM skips them. They often sit on the left of the cell with a small green triangle. Convert them first.
- A total row inside the range. If row 6 already holds totals,
=SUM(B2:D6)counts them twice. - An error in one cell. One #N/A makes the whole SUM show #N/A. See how to sum while ignoring errors.
- Hidden columns. SUM still adds hidden columns. Exclude them from the range if they shouldn't count.
The main SUM function article has more fixes, including AutoSum picking the wrong range.
Practise it#
Summing across and down is a skill you use every day at work and in nearly every Excel test. Practise SUM in a live spreadsheet: you write the totals yourself and the lesson checks them instantly. Then practise absolute references to lock a total with $ and fill a percentage column without errors.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
What were the total sales for Jan and Mar only? Click B7 and write one SUM that adds B2:B5 and D2:D5, skipping the Feb column.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Mar | ||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 5 | |||||
| 6 | |||||
| 7 | Jan + Mar | ||||
| 8 | |||||
| 9 | |||||
| 10 |
Tip: Put both ranges inside one SUM, with a comma between them.
Practise this in a lesson
Frequently asked questions
How do I sum multiple columns in Excel at once?
Use one SUM with a range that covers all the columns, such as =SUM(B2:D5). Excel adds every number in that block. Add more ranges with commas if the columns are apart.
How do I sum two columns that are not next to each other?
List each range inside SUM, separated by a comma: =SUM(B2:B5,D2:D5). You can also hold Ctrl (Mac: ⌘) while you select the second range after typing =SUM(.
Can SUMIF sum multiple columns?
No. SUMIF adds only one column; if you give it a wider sum range, it uses just the first column. Use =SUMPRODUCT((A2:A5="Ben")*B2:D5) or add one SUMIF per column.
What is the shortcut to sum columns in Excel?
Select the cell under a column of numbers and press Alt+= on Windows or ⌘+Shift+T on Mac. Excel inserts AutoSum with the range filled in; press Enter to confirm.