Escolar Documentos
Profissional Documentos
Cultura Documentos
CenterforTeaching g&Learning g
P PivotTable es o OpenExcel2010 InsertaPiv votTable o Crea atingthePi ivot Table E Examplefo orClass A AddaRepo ortFilter o InsertSlicer F FiltertheDate D G GrouptheDates C ChangingtheViewof fthe R Report C ChangingtheFormat tofthe P PivotTable e F FiltertheSalesperson S nData F FilterbyLa abelFilters o Hidd denData C ChangeHo owSubtota alsare V Viewed mple:View wing o Exam thetotals t as SUM M/COUNT o ReNaming N Header C Creating&Formattin nga P PivotTable eChart o FilterwithinaPivot TableChart F Formatting gaPivotTa able C Chart
2 2 4 5 5 6 7 8 8 9 10 0 10 0 11 1 11 1 11 1 12 2
.. .. .. ..
12 2 13 3 13 3 14 4
Pivo otTables s
Yourworksheethaslotsofdata,butdoyou uknowwhatthe t numbers mean?Doesyourdataan nswerallyour rquestions? Pivot tTablereportscanhelptoanalyzenumericaldataan ndanswerqu uestionsabou utit. Insecondsyoucanseewhoso oldthemost,andwhere.See S whichqua arterswereth hemostprofi itable,andwhichproduct soldbest.Askque estions,seeth heanswers. WithPivotTablere eports,youcanlookatthe esameinform mationindiff ferentwaysw withjustafew wmouseclick ks.Data swing gsintoplace, ,answeringquestions,tellingyouwhat tthedatame ans. Imag gineanExcelworksheet w of fsalesfigureswithhundredsorthousan ndsofrowso ofdata.Thew worksheetlay ysoutallthe dataaboutsalesp peopleintwocountriesandhowmuchtheysoldon individualdays.Butit'sal lotofdatatodealwith listed dinrowafter rrowanddivi idedintomultiplecolumns s.Howcanyo ougetinform mationoutoftheworkshee et?Howcan youm makesenseout o ofallofth hisdata? Whosoldthemos stoverall?Whosoldthemost m perquar rterorperyea ar?Whichco ountryhasthe emostsales?Youcanget answ werstoallthe esequestionswithPivotTablereportsit'sliketurn ningamobintoamarching gband.APivotTable reportturnsallthatdataintosmall, s concise ereportsthat ttellyouexac ctlywhatyou uneedtoknow.
BeforeyoustarttoworkwithaPivotTablereport, r takealookatyour rExcelworksh heettomake esureitiswellprepared forth hereport.When W youcrea ateaPivotTab blereport,eachcolumnof fyoursourcedatabecome esafieldthat tyoucanuse inthe ereport.Field dssummarize emultiplerow wsofinforma ationfromthe esourcedata a.Thenames softhefields sforthe reportcomefrom mthecolumntitlesinyoursourcedata. Nowthatyouhav veopenedExc cel2010goto otheFiletab, ,scrolldown toOpenand dselectyourd datayouwou uldliketo work kin.Forclass spleaseopenthedatathatwasemailed dtoclasspar rticipants.
1 1. Besureth hatyouhaveanameforeachcolumnacross a thefirs strowoftheworksheetin nthesourced data.Inthe pictureab bove,thecolu umntitlesCountry,Salesperson,Order Amount,Ord derDate,and dOrderIDwillbecomefield d names. Whenyou ucreatearep port,you'llkn now,forexam mple,thatthe Salespersonfieldreprese entstheSales spersondata fromtheworksheet. w 2 2. Therema ainingrowssh houldcontain nsimilaritem msinthesam mecolumn.Fo orexample,te extshouldbe einone column,numbers n inan nothercolumn,anddatesinanotherco olumn. w acolum mnthatconta ainsnumbers sshouldnotc containtext,a andsoon. Inotherwords, 3 3. Finally,th hereshouldbe enoemptycolumns c withinthedatath hatyouareus singfortheP PivotTablerep port. Wealsorecommendth hattherebenoemptyrow ws;forexamp ple,blankrow wsthatareus sedtosepara ateoneblock ofdatafro omanothershould s berem moved.
Sele stherangeo ectatableorrangeisalre eadyselected dforyou.TheTable/Rang geboxshows oftheselected ddata. New wWorksheetisalsoselecte edforyouastheplacewh heretherepo ortwillbeplac ced(youcanclickExistingWorksheetif f youd don'twantth hereportplac cedinanewworksheet). w Click C OK. Whenyoufirstcre rstisthePivo eateyourpivottableyoushould s seetw wodifferentt ables.Thefir otTable.The ePivotTable willa appearonthe eleftsideofyour y screen.Thesecondis sthePivotTa ableFieldList tthiswillapp pearontherig ghtsideof yourscreen.
mostimporta antthingtore ememberabo outPivotTablesisthatitis saprogramt tohelpyoupr roducethere elevantdata Them witho outhavingto ogothroughand a manually yselecteachentry. e Alsobeawaretha ateverychang geyoumakecaneasilybe eremovedify youlaterdeci idethatitisn nothelpful. Tip:Ifyouclickou utsideofthelayoutarea(ofaPivotTab blereport),th hePivotTableFieldListgoe esaway.Togetthefield listback,clickinsidethePivotT Tablelayoutarea a orreport t.
Chec cktheboxnex xttoSelectMultiple M Item ms.Thiswillallow a youto selectwhichcountryyouw wouldliketofilterthe datathrough. Tip:ToremoveafieldfromaReport R Filter,uncheckthe echeckboxbe ePivotTableFieldList. esidethefieldnameinthe Tore emoveallthefieldsfromthereportsothat t youcanstartover,on ntheRibbon, ,ontheOptio onstab,inthe eActions group,clickthear rrowontheClear C button,andthensele ectClearAll. Forthenextpartoftheinclassexamplewe earegoingto oaddOrderD Datetothepi ivottablebyc clickingonth hefieldname.
Inse ertSlicer
Aslic ceristhesam methingasaddingaReportFilteraswe w didabove, ,howeverthe eslicerisamoreinteractiv vewaytosee e thec changesbeing gmadetothe echart.Forpurposes p offo ollowingthec classexample ewearegoingtoaddtheCountryasa slicer r. Todo othisgototh heOptionsta abandselectInsertSlicer.Thenclicko nInsertSlice er.Alistwillt thenappearw withallofthe e fields syouhaveon nthePivotTa ableFieldList. .Selecttheit temyouwou uldliketocrea ateintoaslic cerandclickO OK.Forclass purposesaddCou untry.
Youw willthenseethatbothCan nadaandtheUnitedState esareputona littlecharta atthetopofthescreenfo oryou,thatis thes slicer.Tosele ectonecountryjustclickon o itandyouwill w seethed databeingfilteredtothele eft. Tose electmorethanoneitemhold h downtheCTRLkeyan ndclickthec ountriesyouwouldliketo oadd. Justl likemostarea asinMicroso oftOfficether reareoptions stoformatth hisfunctionto oappeardiffe erently.Whe enyouinsert aslic certheSlicerTools T tabwillappeargivin ngyouafewoptions o tofor rmattheslice er.
Youc canresizetheslicerbyclickinganddra aggingonthe ecornersofth hebox.Tofo ormatthecolo oroftheslice ergotothe Optio onstab,intheSlicerStyles sandclickon ntheMorebu utton.There youwillseea alloftheopti ionsforformattingthe slicer r. Oneotherthingis sthatyoucan nchangethenumberofco olumnswhich hcanmakeso omeslicersea asiertoread.
FilterbyDat te
Using gdifferentfilt ters,youhavetheabilityto t filterthere eporttoseed dataforcerta aindates.Clickonacellwithdateinit. Right tclickandpo ointtoFilter,and a thensele ectDateFilters. TheD DateFilter(O OrderDate)dialogboxwillappear.Fortheinclasse exampleselec ctisbetwee enandenter rthedates 1/1/2 2009&1/30/ /2009andclic ckok.
Ther reportshowsdatanowlim mitedbythedate d restrictio onsset.Tocl earthedatefilter,rightcl lickonadate edcell,point toFil lterandclickonClearFilte erfromOrde erDate. Tip:Youcanalsoclearthefilte ersbyplacing gthecursorover o thefilter icon next ttotheOrder rdatefieldinthe Pivot tTableFieldList.Clickthearrow a thatap ppears,andth henclickClea arFilterFrom"Orderdate" ".
Gro ouptheDates D
Whentherearela argeamounts sofdatagroupingtheda atestogether rcanbeanef ffectivewayt togetthedat taintoa mana ageableform. Togr roupthedate es, 1 1. Clickadat teintherepo ort. 2 2. OntheOp ptionstab,intheGroupgr roup,clickGr roupField. 3 3. IntheGro oupingdialog box,selectQuarters Q ,whichseemslike eagoodsolut tionforthein nclassexamp ple,andthen clickOK.
Note e:Whenyouaregroupingitemsyouca angroupbymore m thanjust tonething(e e.g.selectingbothmonths sand quart ters). rthedatahas sbeengroup pedyouwillnoticethatth hesalesdata isgroupedin ntofourquar rtersforeachsalesperson. After
Tip:Thereisstillalongchartto t scrollthrou ughyoucanmove m thefield dnamestoge etadifferentview.Todot that,move theO OrderDatefie eldfromtheRowLabelsareatothecolumnareaof thereport(c calledColumn nLabels). Youc candothisby ydragginganddroppingth hefieldname eorgotoada ateonthepiv vottableandrightclickon neofthe dates s.Next,selec ctMove,andthenchooseMoveOrde erDatetoCo olumns.Youshouldseealloftheinfor rmationinthe e main nscreenwitho outhavingtoscrollthroug ghoutexcelto oseeallofth edata. purposesoffo ollowingalongwiththeinclassexamplemovetheO OrderDateba acktotheRo owsLabel. Forp
Note e:ClicktheBa andedRowscheck c boxandtheBanded dColumnsche eckboxtotry ytheoptions.Clearthech heckboxes after ryouselectth hemtogowit thoutbanded drowsorcolu umns. Youc canalsoturnrowheadersandcolumnheadersform mattingoffan ndonbyclicki ingtheRowH Headerschec ckboxand tableor theC ColumnHeaderscheckbox xinthePivotT TableStyleOptionsgroup .Toinsertbl lankrowsint toyourpivott changethelayout tsimplyclickthedropdow wnarrowinth heLayoutg groupandsel lecthowyouwantthepivottableto appe ear.UndertheDesigntabchangesarebeingmadeto t theappear ranceofthep pivottablean nditwillnota alterthedata a inanyway.
FiltertheSa alespersonData
There earealsosom mefiltersthatareautomaticallyputint tothepivotta ableforexam mpleyoushou uldseeadow wnwardarrow w abov vethesalespe ersoncolumn.Clickonthe edownwardarrow a andyo ouwillseealloftheSalesp personandyo ouhavethe optio onofselecting gallorjustafewofthesa alespeople.
Once eyouhaveselectedallorjustafewofthe t namesyo ouwillseethe edownwarda arrowchange etoafiltersy ymbol.Thisis s lettin ngtheviewer rknowthatth hecolumnhasbeenfiltere ed.
10
FilterbyLab belFilters s
Here ewehavetheoptionofpullingoutaspecificsalespe ersonbytheir rnameutilizin ngalabelfilte er.Todothis ssimplyright person(inclassexample),selectFilter, andselectLa abelFilters.Adialogboxw willappeal clickonthenameofthesalesp titled dLabelFilter(Salesperson n).Totheleft tyouwillseethedropdow wnarrow,sele ectEquals.N Nexttypeinth he sales spersonsnam meyouaresee ekingtopullout o andclickOK. O
Tore emovethefilt ter,justrightclickonthename, n andselectClearFilt terfromSalesperson. Tip:Anotherwa aytoclearthe efilterisinth hePivotTableFieldList.Yo umovethec cursoroverth hefiltericon RowLabels,clickthe t arrowtha atappears,an ndthenclickClearFilterFr rom"Salespe erson." nextto
Hidd denData
Youd dohavetheoption o withinthepivottab bletohidesomeoftheinfo ormationwit thoutactually yremovingitfromthe table e. Forp purposesofutilizingtheinclassexamplerightclickon o Buchanan .Next,selectFilterandse electHideSe electedItems. mecategory, Youw willnoticeBu uchananisnolongeronthetable.Tore etrievetheda atabackjustrightclickagaininanynam point ttoFilterand dclickonClea arFilterfrom mSalesperson n.
11
12
heDesigntab b,intheChart tStylesgroup p,clicktheMore M button toseeallth hechoices,an ndthenclickthestyleyou Onth want t. greatthingab boutcreating achartfromaPivotTable eisthatthec chartisintera activeandyou ucanactually yfilterdata Theg fromwithinthech hart.Fromth heclassexam mplewehavetheoptionof ffilteringtheSalespersonandtheOrde erDate.
13
ghtclickonthecolumnan ormatthecolu umncolor,outline,effects sgototheFo ormattab.Yo oucanalsorig ndselect Tofo Form matDataSerie es.TheForm matDataSeri iesdialogbo oxwillopeng givingyouthe eoptiontoformatthecolu umns.You canf fillthecolumn nwithcolorby b goingtoSo olidFilloryou ucanaddPict tureorTextu uretothefillaswell.Once eyouhave made eyourchange esclickClose.
14
Toch hangethetex xtonthePivo otTableChart tgototheFo ormattaband dgowithinth heWordArtStylesandyou ucanchange thec colorandstyle eofthetextas a wellasadd doutlinestothe t textinth echart.
InaP PivotTablech hartyoualsohavetheoptiontoinsertaslicer.Got tothePivotT TableChartTo oolstabandclickonthe Analy yzetab.ObservetheInse ertSlicericonandselectin nsertslicer.S electthefield dnameyouw wouldliketoaddasa slicer randclickOK K. Youcanalsoprotect p yourpivottableby ygoingtothe eHometab,t theCellsgrou upandclicko ontheFormat tdownward TIP:Y arrow w.SelectPro otectSheet.
Itwillthenpromp ptyouwithadialogboxtoenterapasswordaswell astospecifyanyexceptio onsthereadermayhavein n mani ipulatingyourworksheet.Onceyouha avesetthepa asswordclick OK. Toun nlockthesheetsimplygoto t theHometabandselec ctFormat,an ndthenselect tUnprotectS Sheet.
15