You are on page 1of 3

3/1/2017 IntroductiontoExcelSUMIFSFormula|Chandoo.

orgLearnMicrosoftExcelOnline

CustomSearch
Search

IntroductiontoExcelSUMIFSFormula
PostedonApril20th,2010inLearnExcel190comments

GanttChart
Template
Yes,it'seasy.Nothingto
install.TryitFree!
smartsheet.com

IfSUMIFformulaislikearegularknifethatyoucanusetosliceupyourdataandgetwhatyouwant,thenSUMIFS
islikeaSwissarmyknife.

WhatisSUMIF?

WeallknowthatSUMIFformulahelpstofindoutthesumofallvaluesmeetingacondition.So,ifyouhavedatalike
below

http://chandoo.org/wp/2010/04/20/introductiontoexcelsumifsformula/ 1/32
3/1/2017 IntroductiontoExcelSUMIFSFormula|Chandoo.orgLearnMicrosoftExcelOnline

andyouwanttofindouthowmanySpitBombsyousold(spitbombs,really?)thenyoucanuseSUMIFlikethis:
=SUMIF(B3:B16,"SpitBomb",D3:D16)

Butasyouguess,SUMIFhasaseriouslimitation.Itcanonlyprocessoneconditionatatime.Soifyouwant
tofindouthowmanySpitBombsaresoldinNorth,youhaveto,

1.DrivedowntoNorthandmeetthevictimstotakecountofspitbombssold
2.UsearrayformulastoSUMbasedonmultipleconditions
3.UseSUMPRODUCTformula

Whilethefirstoptiontakesalotoftime,theothertwoinvolvewritingcomplexformulas.

SoWhatisSUMIFSFormula?

SUMIFSisthepluralversionofSUMIF.UsingSUMIFSyoucanfindthesumofvaluesinyourdatathatmeet
multipleconditions.

So,togetthesumofallthespitbombssoldinNorth,wejustwrite,

=SUMIFS(D3:D16,B3:B16,SpitBomb,C3:C16,North)

SimilarlytofindthepodgunsalesinEast,justwrite,

HowDoesSUMIFSFormulawork?

SUMIFSformulatakesarangeforsummingthevaluesandatleastonecriteriarangeandcriteria.Youcanspecify
asmanyas127conditionsforsummingyourdata.

http://chandoo.org/wp/2010/04/20/introductiontoexcelsumifsformula/ 2/32
3/1/2017 IntroductiontoExcelSUMIFSFormula|Chandoo.orgLearnMicrosoftExcelOnline

ImagineaskinghowmanyspitbombsHansolosoldinNorthregionofPlanetNaboobetweenlonglongagoandlong
agothatresultedinmorethan25%profits?andgettinganinstantanswer.

ThebeautyofSUMIFSformulaisthatitworkswithwildcardstoo,justlikeitssiblingsSUMIFand
COUNTIF.Soyoucanwriteformulaslike,

=SUMIFS(D3:D16,B3:B16,SpitBomb,C3:C16,*th)togetsumofspitbombssoldinNorthandSouth.

Sowhatisthecatch?

WhileSUMIFSseemslikeallbutterfliesandberries,thereisacatch.ItworksonlyinExcel2007andabove.But
withExcel2010inthehorizon,IhavehighhopesthatfinallyeveryonewillbeabletoenjoytheSUMIFSformula.

Bonus:

JustlikeSUMIFS,thereisCOUNTIFSandAVERAGEIFStooinExcel2007+.Iamsureyoualreadyknowwhatthey
mean.

Sharethistipwithyourfriends

Facebook 57 LinkedIn Twitter Google Email Print

190ResponsestoIntroductiontoExcelSUMIFSFormula

1. cuboosays:
April20,2010at1:04pm

Veryuseful,thankyou!

Reply

AmarKumarsays:
June19,2015at5:38am

Veryuseful

Reply

2. JanHghsays:
April20,2010at1:43pm

Must...force..ITdepartment...toUPGRADETHISSORRYMESSTOWin7&Office2010!!!
*drooooooool.....*

Reply

3. Finnursays:
April20,2010at4:33pm

I'vebeenworkingwithsumifformulastodayandhavebeenwonderinghowIcanuse2criteriasormore.I
havebeenreadingaboutDsumandDaverage.But,ofcourse,thisismucheasier.

Sothanks!

Reply

4. Duchezneesays:
April20,2010at5:15pm

Ofallthetipsyou'vepostedthusfar,Ican'tthinkofonethatwillbemorebeneficialtomeinmydaytoday.
WantingtoincludemultiplecriteriainmySUMIFformulashaslongbeenaseriouspointoffrustration.

Question:Howwillthisformulabehandledbytheconversiontoolifsomeoneopensmy2007filewithand
earlierversionofExcel?
http://chandoo.org/wp/2010/04/20/introductiontoexcelsumifsformula/ 3/32