You are on page 1of 2

Learn Excel 2007 Expert Skills with The Smart Method

Lesson 5-1: Create a one dimensional pivot table report from a table
Inthislesson,youlljumpstraightintothedeependandcreateasimple onedimensionalpivottable.Theresahugeamounttolearnaboutpivot tablesbutitwillbefuntodosomeusefulworkwithonestraightaway. Heresthesamplefilewelluseinthislesson:

Thisisthetypeofworksheetthatpivottablescanworkwellwith becausethecolumnscontainrepeatingdata. Thesamplefilecontainsover2,000rowsoftransactionaldatalistingsales duringthe18monthperiodfromOctober2007toMarch2009inclusive. Youcanseefromthedatathattheworksheetcontainsdetailsoforders soldbyaDVDwholesaler,alongwiththetitlessuppliedoneachorder. Order136438wasplacedon1stOct07andwasorderedbySilverScreen Video.TheorderwassoldbyFrankLeeandtherewerefouritemsonthe order.TwoofthefilmsorderedwereintheDramagenreandtheother twowereintheBiographyandComedygenres. Abusinessmaywishtoaskseveralquestionsaboutsalesduringthis periodsuchas: WhatweremysalesbyGenre? HowmanyunitsdideachEmployeesell?

important
Pivot Tables, Ranges, Named Ranges and Tables
YoucancreateaPivotTable thatisassociatedwithaRange, aNamedRangeoraTable. Thefatalflawofnamedranges isthattheyonlyexpandand contractwhenrowsareinserted ordeletedandNOTwhendata isaddedtotheendofthe range.Youdiscoveredawork aroundtothisproblemin: Lesson46:Createdynamic formulabasedrangenamesusing theOFFSETfunction. Fortunately,Excel2007hasthe fantasticnewTablestructure. Tablesarewonderfultouseas adatasourceforPivotTables becausetheyaretrulydynamic. Youlearnedeverythingthereis toknowabouttablesin:Session One:Tables,Rangesand Databases.

Inthislesson,youlluseapivottabletoanswerbothquestionsinless than10seconds!

Open Transactions-1 from your sample files folder.


ThisworksheetcontainsalargetablenamedData(seesidebarfor moreonusingtableswithPivotTables).Thetablelookslikea regularrangebecauseithashaditsFilterswitchedoffandthe TableStylesettoNone.

2 3

Click anywhere inside the table. Click InsertTablesPivot Table.


Thefirstscreenofthewizardappears. Noticethat,becauseyouclickedinsidethetable,ithas automaticallydetectedthetablesnameofData.

Transactions-1

190

www.LearnMicrosoftExcel.com

Session Five: Pivot Tables

note
Drilling down into pivot table data
WheneverExcelshowsatotal, itispossibletodrilldownto seethetransactionsthatwere usedtocalculatethetotal. Whenyoudoubleclickona total,(suchasthetotalsalesfor actionmoviesincellC5),anew worksheetopensshowingthe sourcetransactions. Youllhavetomanuallydelete thisworksheetafterviewing thetransactionlist.

Click the OK button.


AnemptypivottableisshownonscreenandthePivotTableField Listappearsontherightofthescreen. ChecktheGenre,QtyandTotalcheckboxes(inthatorder)onthe PivotTableFieldList. Simplybyclickingonthreefieldsyouhaveansweredthefirst question: WhatweremysalesbyGenre?

Format the values shown in column C of the pivot table so that they show two decimal places with a comma separator.
1. 2. 3. 4. RightclickonanyvalueincolumnC. ClickNumberFormat...ontheshortcutmenu. ClickNumberintheCategorylist. ClicktheUse1000Separatorcheckbox.

note
Activating a pivot table
Pivottablesarealittlelike chartsinthatyoucannotwork upontheirdesignunlessthey areactivated. Toactivate,yousimplyclick anywhereinsidethepivot table. Whenthepivottableis activated,thePivotTableField Listappearsalongwiththe PivotTableToolstabonthe Ribbon.

5. ClicktheOKbutton.

Clear all check boxes and then select the Employee and Qty check boxes.
Onceagain,withverylittleeffort,youhaveansweredthesecond question: HowmanyunitsdideachEmployeesell?

Name the pivot table: Transactions.


1. 2. 3. ClickinsidethePivotTable. ClickPivotTableToolsOptionsPivotTable PivotTableName. TypeTransactionsintothePivotTableNamebox.

8 9

Name the pivot table worksheet: Pivot Table.

Save your work as Transactions-2.

2009 The Smart Method Ltd

191

You might also like