Excel:IntroductiontoFormulas
TableofContents
Formulas
Arithmetic&ComparisonOperators..................................................................................................2
TextConcatenation.............................................................................................................................2
OperatorPrecedence..........................................................................................................................2
UPPER,LOWER,PROPERandTRIM.....................................................................................................3
&(Ampersand)....................................................................................................................................4
SUM.....................................................................................................................................................5
ROUND................................................................................................................................................5
COUNT.................................................................................................................................................6
IF..........................................................................................................................................................7
Anchoringrows/columnswith$sign..................................................................................................7
CombiningFormulasFrom
Multipleworksheets................................................................................8
PracticeSet........................................................................................................................................................9

2
Formulas
Arithmetic&ComparisonOperators
Arithmetic&ComparisonOperators
Operator
Meaning Example Result
+
Addition A1+B1 NumericValue
‐
SubtractionorNegative A1B1
NumericValue
*
Multiplication A1*B1
NumericValue
/
Division A1/B1
NumericValue
=
Equalto A1=B1 LogicalValue(TRUEorFALSE)
>
Greaterthan A1>B1 LogicalValue(TRUEorFALSE)
<
Lessthan A1<B1 LogicalValue(TRUEorFALSE)
>=
Greaterthanorequalto A1>=B1 LogicalValue(TRUEorFALSE)
<=
Lessthanorequalto A1<=B1 LogicalValue(TRUEorFALSE)
<>
Notequalto A1<>B1 LogicalValue(TRUEorFALSE)
TextConcatenationOperators
TextConcatenationOperators
Operator
Meaning Example Result
&
Connects,or
concatenates,
multiple
valuesto
produceone
continuous
textvalue
Wanttocombinethevaluesin
columnsAC.Iaddedaspace,via
thespacebar,sothewordswould
haveaspacebetweenthem.
Theshowswhattheformulain
D1lookslike.Youcanseethevalue
inD1hasthetwowordscombined
nicely.
OperatorPrecedence
Ifyoucombineseveraloperatorsinasingleformula,Excelperformstheoperationsinaspecificorder,
describedbelow.IfoperatorswithinthesameformulasharethesameprecedenceExcelthendefaults
3
fromlefttoright.Theusermaychangetheorderbywhichcalculationsareperformedbyusing
parentheses.
Thefollowingisanexampleofwhytheprecedenceneedstobeunderstoodandwhyitisimportant:
Formula
Result Calculation
=5+2*3
11 (2times3)plus5
=(5+2)*3 21 (5plus2)times3
OperatorPrecedence
Operator
Meaning
*and/
Multiplication andDivision
+and‐
AdditionandSubtraction
&
TextConcatenation
=
Equalto
<>
Notequalto
<=
Lessthanorequalto
>=
Greaterthanorequalto
UPPER,LOWER,PROPER,andTRIM
Theseformulasallworkwithtext.Afterusingoneofthesefunctionsitisgoodpracticetopaste
special\valuessothattheywillremainintheirdesiredformatting.
1
2
3
4
UPPER,LOWER,PROPER,andTRIM
Formula
Description
=UPPER
Convertsalltexttouppercase
=LOWER
Convertsalltexttolowercase
=PROPER
Capitalizesthefirstletterinatextstringandanyotherlettersin
textthatfollowanycharacterotherthanaletter,i.e.aspace.
Convertsallotherletterstolowercase
=TRIM
Removesallblank,unnecessaryspacesatthestartandendofa
stringincludingextraspaces,tabs,andothercharactersthat
don’tprint.
&(Ampersand)
The&connects,orconcatenates,multiplevaluestoproduceonecontinuoustextvalue.Afterusingthis
functionitisgoodpracticetopastespecial\valuessothattheywillremainintheirdesiredformatting.
ThefinishedproductIwantistohaveShastaCountyinonecellwhichIcan
accomplishwiththe&
function.BycombiningthevaluesincolumnsAandBIhaveaccomplishedmydesiredtask,butquite
literally.NotethereisnospacebetweenthetwowordsincellC1.
ByaddingacolumntotherightofcolumnAandpressingthespace
baronce,creatingasinglespace,and
modifyingmyformulatonowincludecolumnsAC, Inowhaveamorereadableresult.
Noteifyourdataconsistsof
severalrowsyouwould
needtocopytheblank
spaceinB1allthewayto
thelastrow.
Noticethereisnospace
betweenthetwowords.
5
SUM
TheSUMfunctionisthesingularlymostusedfunctionwithinExcel.Itisusedtototalvaluesinyour
worksheets.Thesevaluesmaybecontinuous,noncontinuous,fromdifferentworksheets,etc,oravariety
thereof.
Thesyntaxis=SUM(number1,[number2],[...])
Anexampleoftheformulais=SUM(A1:A4).TheEnglishtranslationisaddupallofthevaluesfoundinthe
rangeofbetweenA1andA4,inclusive,anddisplaystheresult.
NoticethatIhaveoneextralinewithinmyformula.Ido
thatonallofmyformulasasabestpractice.IfI
needtoaddanyadditionalrows,bydoingsoabovetheblankrow,Iamensuredmyformulawill properly
bemodifiedautomatically.
Therearemanyvariationstothisformula,thisisjustoneexample.
ROUND
TheROUNDfunction
roundsanumbertoaspecifiednumberofdigits.Thissho uldnotbeconfusedwith
formattingtoaspecifieddecimalplaces.
Thesyntaxis=ROUND(number,num_digits)
ExpandingourpreviousSUMformulafromabove,theformulais=ROUND(SUM(A1:A4),2).TheEnglish
translationisaddupallofthevaluesfoundintherangeofbetweenA1andA4,inclusive,roundtheresult
totwodecimalplaces,anddisplaytheresult.
It
isimportantnottoconfuseroundingtoaspecificnumberofdecimalsandformattingyourcelltoa
specificnumberofdecimals.Forexample,ifcellA5belowcontains18.44978.Ifweweretoformatthecell
totwodecimalplaces,18.45willbedisplayed.However,Excelstillseesit
as18.44978(Beforepicture).IfI
Addupthevaluesinthisrange
Andplacetheresulthere
6
wantExceltosee,anduseinsubseq uentcalculations,18.45Iwouldneedtohavethefollowing rounding
formulainA5:=ROUND(SUM(A1:A4),2)(Afterpicture)
WithoutROUNDFormula
WithROUNDFormula
COUNT
TheCOUNTfunctioncountsthenumberofcellsthatcontainnumbersandcountsnumberswithinthelist
ofarguments.
ThesyntaxisCOUNT(value1,value2,…)
ContinuingonwithourSUMformulafromabove,let’snotonlyaddupthevaluesoftherangeA1:A4,but
let’scounthowmanynumbersareincludedwithintherange,i.e.howmanycellswithintherangehasa
valueinit.
Theformulais=COUNT(A1:A4).TheEnglishtranslationiscounthowmanycellswithintherangehasa
valueinitanddisplaytheresult.
Noticethattherangeisexactlythesameasour
SUM,A1:A4,whichincludesfourrows.Thevalue
returnedincellA7isthree,becauseonlythreeofthe
fourrowshavevaluesinthem.
Ifyouaretryingtocounttext,usetheCOUNTAformulawhichcountsthe
nonblankcells.
7
IF
Theformulamakesastatement/question,iftheansweristruethenoneresponseisobtained.Ifthe
answeriffalse,thenanotheranswerisobtained.
Thesyntaxis=IF(logical_test,value_if_true,value_if_false)
ContinuingonwithourSUMformulafromabove,let’saddsomeverbagetoemphasizewhethertheresult
isgreateror
lessthantwenty.
Theformulais=if(A5<20,”Amountislessthantwenty”,”Amountismorethantwenty”).TheEnglish
translationisifthevaluefoundinA5is lessthantwentyTHENdisplaythecomment‘Amountislessthan
twenty’ELSEdisplaythecomment‘Amountismorethantwenty’.
AnchoringRowsandColumnsWith$Sign
Asformulasarecopiedeitherthecolumnreferenceincreasesortherownumberdependingonthe
directionofthecopy.Ifcopyingtotherightthroughthespreadsheet,thecolumnreferencewillincrease;
ifcopyingdownthroughthespreadsheet,therowreferenceswill
increase.
Inordertooverruletheautomaticincrement,placeadollarsigninfrontofthereferencethatyoudon’t
wanttochange,thecolumn,row,orboth.
AnchoringRowsandColumnsWith$Sign
Source
Formula
Action
Destination
Formula Effect
=SUM(A1:A4) Copyformulaonecell
totheright
=SUM(B1:B4) Columnreferences
increasedfromAtoB
andAtoB
=SUM($A1:A4) Copyformulaonecell
totheright
=SUM($A1:B4) ColumnreferencesA
stayedconstantatAand
increasedfromAtoB
=SUM(A1:A4) Copyformulaonecell
down
=SUM(A2:A5) Rowreferences
increasedfrom1to2
and4to5
8
=SUM(A$1:A4) Copyformulaonecell
down
=SUM(A$1:A5) Rowreferences1stayed
constantat1and
increasedfrom2to5
=SUM($A$1:$A$4) Copyformula
anywherewithinthe
spreadsheet
=SUM($A$1:$A$4) Neithercolumnnorrow
referenceschanged
CombiningFormulasBetweenMultipleWorksheets
Datacanbepulledfromotherworksheetsandutilizedonothers.Thisfunctioncanbeusedforboth
numericalandtextdata.Theformulascancombineonetomanyworksheetsareranges.
ForExample,thisisextremelyhandywhenoneworksheetactsasasummaryand
recapsinformationfrom
thedetailworksheets.Ourexamplebelowrecapssalesononesheet,whilethemonthlydetailin
maintainedonothersheets.
NotetheworksheetnamesofSummary,Jan,Feb,&Mar.WeareworkingwithintheSummaryworksheet,
denotedbythetabcolor.Thecurserisincell
D6whichreceivesitsinformationfromtheJanuary
worksheet.

9
PRACTICESET
Usingthedataonthestaffmileagedatatab,performthefollowingsteps:
1. Insertrowsandaddtheheader.Changethefontsizeto12.Makeboldanditalize.
2. Bold,underline,wordwrap,andcenterheaders.
3. Sortemployeedatalines,skippingthebudgetrowbyemployee
nameanddate
4. UsingthePROPERcommandcleanuptheemployeesnames.
5. UsingtheSUMformulaaddtotalstotheadopted,revised,andactualcolumns.
6.
Addthetopandbottombordertothesums.
7.
AddREMAININGBALANCEtextanddoabasicsubtractionformulacalculatingthedifference
betweentherevisedbudgettotalandtheactualtodate.
8.
Add‘NUMBEROFTRANSACTIONSTODATE’caption.UsingtheCOUNTformulacountthenumber
oftransactions.
9. Addanewcolumnentitled‘RemainingBalance(RevisedvsActual).Usingbasicsubtraction
calculatetheremainingbalanceonaperlinebasis.
10.
Yourfinalproductshouldlooklikethis: