Anda di halaman 1dari 12

Excel2007 AdvancedFunctions

Bytesizeoffice.co.uk

Inthislessonyouwilllearnhowto: CompleteAdvancedFunctions ConcatenateFunction SumIfFunction Vlookup&HlookupFunctions IfFunction

Bytesizeoffice.co.uk

Printoutthislessonsothatyoucanworkalongsideofit, practisingthetechniquesasweworkthroughthelesson. OpenanewWorksheet,typeinthefollowingtable.

WeneedaTableinorderforustocompleteourfunctions. ThefirstfunctionwearegoingtouseistheConcatenateFunction. ConcatenateFunction Letssaywewanttohavethreeofourcolumndatainonecolumn attheendofourtable.Thiswouldgiveusaquickreference. Orwemightwanttodelete3columnsandreplaceonecolumn withthedatafromallthree. Firstweplacethecursorwherewewantthenewtexttobe placed. PresstheFormulaTab,clickonTextthenonConcatenate.Then enterthecellreferencesseparatedbya_todistinguishfromone celltoanother.ThefirstcellwewouldenteristheITEMcellwhich isA2thisistoobeplacedinthefirsttextboxoftheboxthat opensup.Inthesecondtextarea,wewouldplace_inthethird B2,inthefourth_andinthefifthC2.Excel2007thenshowsusin textwhatthecompletedfunctionwilllooklike.Thatistheresult whatwewantsoweclickonOK. 3
Bytesizeoffice.co.uk

Onceyouhavecompletedthefunction,youwillseetheresultson yourworksheet,clickanddragtocopythefunctiondownthe column.

Wecannowselecttherow,clickoncopy,gototheplacewhere wewantthenewinformationA2andclickPasteSpecial,then Values. 4


Bytesizeoffice.co.uk

OnthistableI havecopiedand pasted3 columnsinto one.

SUMIF Insertthefollowingtableandenterthedata.Whatwearegoing todowiththistableisfindthetotalamountsofwhatsbeensold.

Butifwehadaverylargeworkbook,wewouldfindittakesages tocountthenumberofLaptops,say.Sowearegoingtodoa functiontogiveustheinformation.


Typeinthedata incolumnE

Placeyourcursorwhereyouwantthenewdatatogo. 5
Bytesizeoffice.co.uk

PlaceitincellF2untilitissurroundedbyablackbox.Asshown previously. GototheFunctionsarea,intheFormulasTab,clickonthemaths &trigoption.FromtheflyoutchooseSUMIF

Fromthedialogueboxthatopensupweenterthedata.Inthe RangeBox,wemustentertherangeofcellswherewewanttoget ourdatafrom.A2:A13IntheCriteriawetellExcelwhattofind whendoingthesum.IntheSumRangewegiveExcelthecells whereitcansumup.B2:B13. Whenwecopythecelldown,itgivesthewronganswer,wemust remembertoformatthenewcellwiththecorrectinformation. Intheformulabarwemust


changeLaptoptoPC Workstation.Donot removetheQuotation marks.Wewillthenget therightanswer.Complete thefunctionforeachofthe criterias.Copythe functiondownand remembertoplacethe cursorinthenewcell.

Bytesizeoffice.co.uk

Therewehaveit,thetotalamountssoldofeachitem. LookUps ThesetypesoffunctionsareverypowerfulfunctionsinExcel 2007.

VLOOKUP ChooseVLOOKUPfromtheflyoutintheLookupandReference categoryintheformulastab.VLOOKUPistheeasiesttypeof Lookupfunction.Itlooksupinformationincolumns.AHLOOKUP functionwouldfindtheinformationonarow,soinawork situationitwoulddependonhowthetablesaresetoutastowhat kindofLookupyouwoulduse. Inthisexercisewearegoingtofinddatabasedontheitem numbertofindoutthecostoftheitem.TheVLOOKUPfunction searchesinthefirstcolumnforthedata.Ifwehadalargeamount ofdatathisfunctionwouldcutdownthework. 7
Bytesizeoffice.co.uk

Herewehaveour tableagainandIve completedthetotals byaddingaformula forthefirsttotaland copyingdown.Ive alsoinsertedanItem Nocolumn.Fillinthe missingdatainyour table.

Herewehavethefunctionbox,ifyoureadthetextonthisbox, youwillgetanideaofwhattheVLOOKUPfunctiondoes.Weneed toenterin4referencesforthefunction.Thefirsttextboxisthe lookup_valueandwillbelookingatthedatainthefirstcolumnof ourtableforourresult. EnterinF7asthatisthecellwewantthevaluein.

TheTable_arrayisthewholetable,EnterinA2:E13wedonot needtoincludetheheadings. ThenextboxisCol_index_numinthisboxwewouldenterinthe costofeachitemwhichisinColumn4,noticeweenterinthe numberofthecolumnandnotthecellreference,wefindthe 8


Bytesizeoffice.co.uk

numberbysimplycountingthecolumnsuntilwecometotheright one. ThefinalboxasksfortheRange_lookup,becausewewantan exactmatchwewillenterFALSE. Ourargumentsboxnowlookslikethis.ClickonOK.

TheTableabovenowlooksasifwehaveenteredinthewrong formulabutwehavenot,itissimplylookingforsomethingtolook up. InF7enter4underItemNo,incellF7pressenterandyoushould havearesult,checkmanuallytoseeifitiscorrect.Ifitisnotcheck theformulaonthenextpage,thereisprobablysomethingthat youhavenotenteredincorrectly.Lookupisaverycomplex formula,sowelldoneforgettingthisfar.Trymoreamountsofthe ItemNo. 9


Bytesizeoffice.co.uk

IFFunction TheIFfunction=ifaconditionistrueornottrue.Itisnotvery difficulttolearnandisveryuseful. Wewanttoseehowmanystudentshavepassedatest.Thevalue wouldbe75%sothatisthecondition.StudentswillthenPassor Failthatcondition. Typethefollowingtable.

PlaceyourcursorinthecellC2oronthefirstresultcell. ClickontheFormulasTab/Logical/If 10
Bytesizeoffice.co.uk

Thefirstboxasksusforthecondition,sowewouldenterinthe cellreferencewheretheconditiondataisB2,thenthegreater thansign>,thenaddthecondition75%. Thesecondboxaskswhatifthevalueistrue.TypeinPassthe nextboxaskswhatifthevalue,werefalse,sotypeinFail.

Thatisallyouneedtoenter,clickonOK.Copytheformuladown andyouhavetheresults.

11
Bytesizeoffice.co.uk

TherearemanyfunctionsinExcel,ifyoulikefunctionsandwant tolearnmore,youcanbuytextbooksjustonFormulasand Functions.Orifyouarebraveyoucanseethescreentipofwhat anyfunctiondoes,(ifyouhavecustomisedyourExceltoshow screentips).Youcanthengetanideaofwhatthefunctiondoes andcompletemanyofyourown. Thatistheendofthislesson:Ifyoupractisedasweworked throughthelesson,youwillhavelearnedhowtoapplythe: ConcatenateFunction SumIfFunction VLOOKUPFunction IfFunction WellDone

12

Bytesizeoffice.co.uk

Anda mungkin juga menyukai