Professional Documents
Culture Documents
php)
Howtosumentirecolumnexceptheader/firstrowinExcel
Thereisalonglistofvaluesinyourworksheet,andsometimesyouwilladdordeletesomevaluesin
thislist,howcouldyouautomaticallysumupthetotaloftheminthefirstcell?Now,youneedtosum
entirecolumnexcepttheheaderorfirstrowinExcel.
SumentirecolumnexceptheaderwithformulainExcel
SumentirecolumnexceptheaderuseFunctioninExcel
RecommendedProductivitySoftware
OfficeTab(/product/officetab.html):UsetabbedinterfaceinOfficeastheuseofweb
browserChrome,FirefoxandInternetExplorer.
KutoolsforExcel(/product/kutoolsforexcel.html):Adds120powerfulnewfeaturesto
Excel.Increaseyourproductivityin5minutes.Savetwohourseveryday!
ClassicMenuforOffice
(http://www.addintools.com/office2010/professionalplus/index.html):Bringsbackyour
familiarmenustoOffice2007,2010,2013and2016(includesOffice365).
SumentirecolumnexceptheaderwithformulainExcel
(/product/officetab.html)
Amazing!UsingTabsinExcellikeFirefox,Chrome,InternetExplore10!(/product/officetab.ht
HowtobemoreefficientandsavetimewhenusingExcel?(/product/kutools
forexcel/kutoolsforexcel1.html)
InExcel,usingaformulawillbeagoodandeasychoiceformostExcelusers.
InExcel2007/2010/2013,typethisformula=SUM(A2:A1048576)(Aisthecolumnyouwantto
sum)intothefirstcellofyourlist,thenpressEnterbuttononthekeyboard.Youcanseethetotal
ofthelistissummedupinthefirstcellandchangesautomaticallyasthelistchanges.
Tip:InExcel2003,youcanusethisformula=SUM(A2:A655366).
SumentirecolumnexceptheaderuseFunctioninExcel
UsingaFunctionalsocansumtheentirecolumnexceptheadersinExcel.
1.SelectacellofthecolumnyouwanttoselectandpressAlt+F11toopentheMicrosoftVisual
BasicforApplicationswindow.
2.Inthepopupwindow,clickInsert>Module,thenpastethefollowingVBAcodeintothe
module.
VBA:Extractnumberonly
1
2
3
4
5
6
7
8
9
10
11
12
PublicFunctionSumColumn(pRngAsRange)AsDouble
'Updateby20140510
DimxColIndexAsInteger
DimxRowIndexAsInteger
DimwsAsWorksheet
SetpRng=pRng.Columns(1)
Setws=pRng.Parent
xIndex=pRng.Column
xRowIndex=ws.Cells(Rows.Count,xIndex).End(xlUp).Row
SetpRng=ws.Range(ws.Cells(2,xIndex),ws.Cells(xRowIndex,xIndex))
SumColumn=Application.WorksheetFunction.Sum(pRng)
EndFunction
3.Savethecodeandclosethewindow,thentypethisformula=SumColumn(A1)(A1isthefirst
cellinthelistcolumn)intothefirstcelloflistcolumn,pressEnterbutton,thenthelistexceptthe
headerissummedup.
Tip:Ifyouchangethevaluesinthelist,youneedtorefreshthetotalofthelistcolumnwithdouble
clickingtheformulacell(inourcaseitisCellA1)andpressingtheEnterkey.
RelativeArticles:
Selectentirecolumnexceptheader/firstrowinExcel(/documents/excel/1628excelselect
columnexceptheaderfirstrow.html)
Isyourproblemsolved?
Yes,IwanttobemoreefficiencyandsavetimewhenusingExcel
(/product/kutoolsforexcel/kutoolsforexcel1.html)No,theproblempersists
andIneedfurthersupport(/product/kutoolsforexcel/kutoolsforexcel2.html)
RecommendedProductivityTools
Thefollowingtoolswillgreatlysaveyourtimeandeffort,whichonedoyouprefer?
OfficeTab(/product/officetab.html):UsinghandytabsinyourOffice,asthewayof
Chrome,FirefoxandNewInternetExplorer.
KutoolsforExcel(/product/kutoolsforexcel.html):120powerfulnewfunctionsforExcel,
Increaseyourproductivityin5minutes.Savetwohourseveryday!
ClassicMenuforOffice(http://www.addintools.com/office2010/professionalplus/index.html):
BringbackfamiliarmenustoOffice2007,2010,2013and365,asifitwereOffice2000
and2003.
KutoolsforExcel(/product/kutoolsforexcel.html)
Amazing!Increaseyourproductivityin5minutes.Don'tneedanyspecialskills,savetwo
hourseveryday!
Morethan120powerfuladvancedfunctionswhichdesignedforExcel:
MergeCell/Rows/ColumnswithoutLosingData.
CombineandConsolidateMultipleSheetsandWorkbooks.
CompareRanges,CopyMultipleRanges,ConvertTexttoDate,UnitandCurrencyConversion.
CountbyColors,PagingSubtotals,AdvancedSortandSuperFilter,
MoreSelect/Insert/Delete/Text/Format/Link/Comment/Workbooks/WorksheetsTools...
(/product/kutoolsforexcel.html)
(/product/kutoolsforexcel.html)
(/download/kutoolsforexcel.html)
(/order/kutoolsforexcel.html)
Addcomment
Name(required)
Email(required,butwillnotdisplay)
2000symbolsleft
Notifymeoffollowupcomments
Refresh
Send
Home(/)
Documents(/documents.html)
PrivacyPolicy(/privacypolicy.html)
Support(/support.html)
ContactUs(/support/aboutus.html)
Copyright20092016ExtendOffice.com|AllRightsReserved.
MicrosoftandtheOfficelogoaretrademarksorregisteredtrademarksofMicrosoftCorporationin
theUnitedStatesand/orothercountries.
(https://www.facebook.com/ExtendOffice) (https://twitter.com/ExtendOffice)