Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to sum entire column except header/first row in Excel?

There is a long list of values in your worksheet, and sometimes you will add or delete some values in this list, how could you automatically sum up the total of them in the first cell? Now, you need to sum entire column except the header or first row in Excel.

Sum entire column except header with formula in Excel

Sum entire column except header use Function in Excel

arrow blue right bubble Sum entire column except header with formula in Excel

In Excel, using a formula will be a good and easy choice for most Excel users.

In Excel 2007/2010/2013, type this formula =SUM(A2:A1048576) (A is the column you want to sum) into the first cell of your list, then press Enter button on the keyboard. You can see the total of the list is summed up in the first cell and changes automatically as the list changes.

Tip: In Excel 2003, you can use this formula =SUM(A2:A655366).

arrow blue right bubble Sum entire column except header use Function in Excel

Using a Function also can sum the entire column except headers in Excel.

1. Select a cell of the column you want to select and press Alt + F11 to open the Microsoft Visual Basic for Applications window.

2. In the pop-up window, click Insert > Module, then paste the following VBA code into the module.

VBA: Extract number only

Public Function SumColumn(pRng As Range) As Double
Dim xColIndex As Integer
Dim xRowIndex As Integer
Dim ws As Worksheet
Set pRng = pRng.Columns(1)
Set ws = pRng.Parent
xIndex = pRng.Column
xRowIndex = ws.Cells(Rows.Count, xIndex).End(xlUp).Row
Set pRng = ws.Range(ws.Cells(2, xIndex), ws.Cells(xRowIndex, xIndex))
SumColumn = Application.WorksheetFunction.Sum(pRng)
End Function

3. Save the code and close the window, then type this formula =SumColumn(A1) (A1 is the first cell in the list column) into the first cell of list column, press Enter button, then the list except the header is summed up.

Tip: If you change the values in the list, you need to refresh the total of the list column with double clicking the formula cell (in our case it is Cell A1) and pressing the Enter key.

Relative Articles:

Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Michael Avidan · 1 years ago
    One shouldn't bother with distinguishingbetween the various versions of Excel.
    The ultimate formulas for the above task are:

    PS: there are a few more but they need the Iterative Calculation to be enabled.
    Michael (Micky) Avidan
    “Microsoft® Answers" - Wiki author & Forums Moderator
    “Microsoft®” Excel MVP – Excel (2009-2018)
    • To post as a guest, your comment is unpublished.
      Shahed · 1 years ago
      Very good solution. Fantastic. Thanks to you ...♥♥♥♥