Sie sind auf Seite 1von 27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet
Cart Login

Quick, clean, and to the point

Training

Videos

Functions

Formulas

Shortcuts

Blog

Search...

23 things you should know about Excel pivot tables


by DAVE BRUNS | July 30, 2014
Many Excel experts believe that pivot tables are the single most powerful tool in Excel. According to Bill Jelen (a.k.a. Mr. Excel) "No
other tool in Excel gives you the flexibility and analytical power of a pivot table". I agree completely. Excel Pivot Tables are fun and
powerful. So, in no particular order, here are some things you should know about them.

Video: Why Pivot Tables? formulas vs. pivot tables

1. You can build a pivot table in about one minute


Many people have the idea that building a pivot table is complicated and time-consuming, but it's simply not true. Compared to the
time it would take you to build an equivalent report manually, pivot tables are incredibly fast. If you have well-organized source data,
you can create a pivot table less than a minute. Here's how:
1. Select any cell in the source data
2. On the Insert tab of the ribbon, click the PivotTable button
3. In the Create PivotTable dialog box, check the data and click OK
4. Drag a "label" field into the Row Labels area (e.g. customer)
5. Drag a numeric field into the Values area (e.g. sales)
Video: How to quickly create a pivot table

https://exceljet.net/thingstoknowaboutexcelpivottables

1/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Select any cell in the data to start.

A very simple pivot table in about 30 seconds

2. Perfect your source data


To minimize problems down the road, always use good quality source data, organized in a tabular layout. "Perfect" source data will have
no blank rows or columns, and no subtotals. Each column will have a unique name (on one row only), every field will have a value in
every row, and columns will not hold repeated groups of data (i.e. month names, location names, region names, etc.).
Video: How to quickly fill in missing data

https://exceljet.net/thingstoknowaboutexcelpivottables

2/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Perfect data for a pivot table!

3. Count the data first


When you first create a pivot table, use it to generate a simple count first to make sure the pivot table is processing the data as you
expect. To do this, simply add any text field as a Value field. You'll see a very small pivot table that displays the total record count, that
is, the total number of rows in your data. If this number makes sense to you, you're good to go. If the number doesn't make sense to
you, it's possible the pivot table is not reading the data correctly or that the data has not been defined correctly.

300 first names means we have 300 employees. Check.

4. Plan before you build


Although it's a lot of fun dragging fields around a pivot table, and watching Excel churn out yet another unusual representation of the
data, you can find yourself going down a lot of unproductive rabbit holes very easily. An hour later, it's not so fun anymore. Before you
start building, jot down what you are trying to measure or understand, and sketch out a few simple reports on a notepad. These simple
notes will help guide you through the huge number of choices you have at your disposal. Keep things simple, and focus on the questions
you need to answer.

5. Use a table for your data to create a "dynamic range"


https://exceljet.net/thingstoknowaboutexcelpivottables

3/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

If you use an Excel Table for the source data of your pivot table, you get a very nice benefit: your data range becomes "dynamic". A
dynamic range will automatically expand and shrink the table as you add or remove data, so won't have to worry that the pivot table is
missing the latest data. When you use a Table for your pivot table, the pivot table will always be in sync with your data.
252

shares

155

49

To use a Table for your pivot table:


1. Select any cell in the data use the keyboard shortcut Ctrl-T to create a Table
2. Click the Summarize with PivotTable button (TableTools > Design)
3. Build your pivot table normally
4. Profit: data you add to your Table will automatically appear in your Pivot table on refresh
Video: Use a table for your next pivot table

Creating a simple Table from the data using (Ctrl-T)

Now that we have a table, we can use Summarize with a Pivot Table

Still need inspiration on why you should learn pivot tables? See my personal story.

https://exceljet.net/thingstoknowaboutexcelpivottables

4/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

6. Use a pivot table to count things


By default, a Pivot Table will count any text field. This can be a really handy feature in a lot of general business situations. For example,
suppose you have a list of employees and want to get a count by department? To get a breakdown by department, follow these steps:
1. Create a pivot table normally
2. Add the Department as a Row Label
3. Add the employee Name field as a Value
4. The pivot table will display a count of employee by Department

Employee breakdown by department

7. Show totals as a percentage


In many pivot tables, you'll want to show a percentage rather than a count. For example, perhaps you want to show a breakdown of
sales by product. But, rather than show the total sales for each product, you want to show sales as a percentage of the total sales.
Assuming you have a field called Sales in your data, just follow these steps:
1. Add Product to the pivot table as a Row Label
2. Add Sales to the pivot table as a Value
3. Right-click the Sales field, and set "Show Values As" to "% of Grand Total"
See the tip below "Add a field more than once to a pivot table" to learn how to show total sales and sales as a percent of total at the
same time.

https://exceljet.net/thingstoknowaboutexcelpivottables

5/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Changing value display to % of total

Sum of employees displayed as % of total

8. Use a pivot table to build a list of unique values


Because pivot tables summarize data, they can be used to find unique values in a field. This is a good way to quickly see all the values
that appear in a field and also find typos, and other inconsistencies. For example, suppose you have sales data and you want to see a list
of every product that was sold. To create a product list:
1.
2.
3.
4.

Create a pivot table normally


Add the Product as a Row Label
Add any other text field (category, customer, etc) as a Value
The pivot table will show a list of all products that appear in the sales data

https://exceljet.net/thingstoknowaboutexcelpivottables

6/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Every product that appears in the data is listed (including a typo)

Want to learn more about Pivot Tables? See our accelerated video training.

9. Create a self-contained pivot table


When you've created a pivot table from data in the same worksheet, you can remove the data if you like and the pivot table will
continue to operate normally. This is because a pivot table has a pivot cache that contains an exact duplicate of the data used to create
the pivot table.
1. Refresh the pivot table to ensure cache is up to date (PivotTable Tools > Refresh)
2. Delete the worksheet that contains the data
3. Use your pivot table normally
See: How to make a self-contained pivot table

10. Group a pivot table manually


Although pivot tables automatically group data in many ways, you can also group items manually into your own custom groups. For
example, assume you have a pivot table that shows a breakdown of employees by department. Suppose you want to further group the
Engineering, Fulfillment, and Support departments into Group 1, and Sales and Marketing into Group 2. Group 1 and Group 2 don't
appear in the data, they are your own custom groups. To group the pivot table into the ad hoc groups, Group 1 and Group 2:
1.
2.
3.
4.
5.

Control-click to select each item in the first group


Right-click one of the items and choose Group from the menu
Excel creates a new group, "Group1"
Select Marketing and Sales in column B, and group as above
Excel creates another group, "Group2"

https://exceljet.net/thingstoknowaboutexcelpivottables

7/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Starting to group manually

Half way through manual grouping - Group 1 is done

https://exceljet.net/thingstoknowaboutexcelpivottables

8/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Finished grouping manually

11. Group numeric data into ranges


One of the most interesting and powerful features that every pivot table has is the ability to group numeric data into ranges or buckets.
For example, assume you have a list of voting results that includes voter age, and you want to summarize the results by age group:
1. Create your pivot table normally
2. Add Age as a Row Label, Vote as a Column Label, and Name as a Value
3. Right-click any value in the Age field and choose Group
4. Enter 10 as the interval in the "By:" input area
5. When you click OK, you'll see the voting data grouped by age into 10-year buckets
Video: How to group a pivot table by age range

The source data for voting results

https://exceljet.net/thingstoknowaboutexcelpivottables

9/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Grouping the age field into 10 year buckets

Done grouping voting results by age range

12. Rename fields for better readability


When you add fields to a pivot table, the pivot table will display the name that appears in the source data. Value field names will appear
with "Sum of " or "Count of" when they are added to a pivot table. For example, you'll see Sum of Sales, Count of Region, and so on.
However, you can simply overwrite this name with your own. Just select the cell that contains the field you want to rename and type a
new name.

https://exceljet.net/thingstoknowaboutexcelpivottables

10/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Rename a field by typing over the original name

13. Add a space to field names when Excel complains


When you try to rename fields, you might run into a problem if you try to use exactly the same field name that appears in the data. For
example, suppose you have a field called Sales in your source data. As a value field, it appears as Sum of Sales, but (sensibly) you want it
to say Sales. However, when you try to use Sales, Excel complains that the field already exists, and throws a "PivotTable field name
already exists" error message.

Excel doesn't like your new field name


As a simple workaround, just add a space to the end of your new field name. You can't see a difference, and Excel won't complain.

https://exceljet.net/thingstoknowaboutexcelpivottables

11/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Adding a space to the name avoids the problem

14. Add a field more than once to a pivot table


There are many situations when it makes sense to add the same field to a pivot table more than once. It may seem odd, but you can
indeed add the same field to a pivot table more than once. For example suppose you have a pivot table that shows a count of employees
by department.
The count works fine, but you also want to show the count as a percentage of total employees. In this case, the simplest solution is to
add the same field twice as a Value field:
1. Add a text field to the Value area (e.g. First name, Name, etc.)
2. By default, you'll get a count for text fields
3. Add the same field again to the Value area
4. Right-click the second instance, and change Show Values As to "% of Grand Total"
5. Rename both fields as as you wish

Setting a field to show percent of total

https://exceljet.net/thingstoknowaboutexcelpivottables

12/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

The Name field has been added twice

15. Automatically format all value fields


Any time you add a numeric field as a Value in a pivot table, you should set the number format directly on the field. You may be
tempted to format the values you see in the pivot table directly, but this is not a good idea, because it's not reliable as the pivot table
changes. Setting the format directly on the field will ensure that the field is displayed using the format you want, no matter how big or
small the pivot table becomes.
For example, assume a pivot table that shows a breakdown of sales by Region. When you first add the Sales field to the pivot table, it
will be displayed in General number format, since it's a numeric field. To apply the Accounting number format to the field itself:
1. Right-click on the Sales field and select Value Field Settings from the menu
2. Click the Number Format button in the Value field settings dialog that appears
3. Set the format to Accounting and click OK to exit

Setting format directly on a value field

16. Drill down to see (or extract) the data behind any total
Whenever you see a total displayed in a pivot table, you can easily see and extract the data that makes up the total by "drilling down".
https://exceljet.net/thingstoknowaboutexcelpivottables

13/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

For example, assume you are looking at a pivot table that shows employee count by department. You can see that there are 50
employees in the Engineering department, but you want to see the actual names. To see the 50 people that make up this number,
double-click directly on the number 50 and Excel will add a new sheet to your workbook that contains the exact data used to calculate
50 engineers. You can use this same approach to see and extract data behind totals wherever you see them in a pivot table.

Double click a total to "drill down"

The 50 Enginners, extracted into a new sheet automatically

17. Clone your pivot tables when you need another view
Once you have one pivot table set up, you might want to see a different view of the same data. You could of course just rearrange your
existing pivot table to create the new view. But if you're building a report that you plan to use and update on an on-going basis, the
easiest thing to do is clone an existing pivot table, so that both views of the data are always available.
There are two easy ways to clone a pivot table. The first way involved duplicating the worksheet that holds the pivot table. If you have a
pivot table set up in worksheet with a title, etc., you can just right click the worksheet tab to copy the worksheet into the same
workbook. Another way to clone a pivot table is to copy the pivot table, and paste it somewhere else. Using these approaches, you can
make as many copies as you like.
When you clone a pivot table this way, both pivot tables share the same pivot cache. This means that when you refresh any one of the
https://exceljet.net/thingstoknowaboutexcelpivottables

14/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

clones (or the original) all of the related pivot tables will be refreshed.
Video: How to clone a pivot table

18. Unclone a pivot table to refresh independently


After you've cloned a pivot table, you might run into a situation where you really don't want the clone to be linked to the same pivot
cache as the original. A common example is after you've grouped a date field in one pivot table, refresh, and discover that you've also
accidentally grouped the same date field in another pivot table that you didn't intend to change. When pivot tables share the same pivot
cache, they also share field grouping as well.
Here's one way to unclone a pivot table, that is, unlink it from the pivot cache it shares with other pivot tables in the same worksheet:
1. Cut the entire pivot table to the clipboard
2. Paste the pivot table into a brand new workbook
3. Refresh the pivot table
4. Copy it again to the clipboard
5. Paste it back into the original workbook
6. Discard the temporary workbook
Your pivot table will now use it's own pivot cache and will not refresh with the other pivot table(s) in the workbook, or share the same
field grouping.

19. Get rid of useless headings


The default layout for new pivot tables is the Compact layout. This layout will display "Row Labels" and "Column Labels" as headings in
the pivot table. These aren't the most intuitive headings, especially for people that don't often use pivot tables. An easy way to get rid of
these odd headings is to switch the pivot table layout from Compact to Outline or Tabular layout. This will cause the pivot table to
display the actual field names as headings in the pivot table, which is much more sensible. To get rid of these labels altogether, look for
a button called Field Headers on the Analyze tab of the Pivot Table Tools ribbon. Clicking this button will disable headings completely.

Note the useless and confusing field headings

https://exceljet.net/thingstoknowaboutexcelpivottables

15/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Switching the layout from Compact to Outline

Field headings in Outline layout are much more sensible

20. Add a little white space around your pivot tables


This is just a simple design tip. All good designers know that a pleasing design requires a little white space. White space just means
empty space set aside to give the layout breathing room. After you create a pivot table, insert an extra column to the left and an extra
row or two at the top. This will give your pivot table some breathing room and create a better looking layout. In most cases, I also
recommend that you turn off gridlines on the worksheet. The pivot table itself will present a strong visual grid, so the gridlines outside
the pivot table are unnecessary, and will simply create visual noise.

https://exceljet.net/thingstoknowaboutexcelpivottables

16/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

A little white space makes your pivot tables look more polished

Inspiration: 5 pivot tables you haven't seen before.

21. Get rid of row and column grand totals


By default, pivot tables show totals for both rows and columns, but you can easily disable one or both of these totals if you don't want
them. On the Pivot Table tab of the ribbon, just click the Totals button and choose the options you want.

You can remove grand totals for both rows and columns

22. Format empty cells


If you have a pivot table that has a lot of blank cells, you can control the character that is displayed in each blank cell. By default, empty
cells will display nothing at all. To set your own character, right-click inside the pivot table and select Pivot Table options. Then make
sure that "Empty cells as:" is checked, and enter the character you want to see. Keep in mind that this setting respects the applied
number format. For example. if you are using the accounting number format for a numeric value field, and enter a zero, you'll see a
hyphen "-" displayed in the pivot table, since that's how zero values are displayed with the Accounting format.
https://exceljet.net/thingstoknowaboutexcelpivottables

17/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Empty cells set to display 0 (zero) and Accounting number format gives you hyphens

23. Turn off AutoFit when necessary


By default, when you refresh a pivot table, the columns that contain data are adjusted automatically to best fit the data. Normally, this
is a good thing, but it can drive you crazy if you have other things on worksheet along with the pivot table, or if you have carefully
adjusted the column widths manually and don't want them changed. To disable this feature, right-click inside the pivot table and
choose PivotTable Options. In the first tab of the options (or the layout tab on a Mac), uncheck "AutoFit Column Widths on Update".

Pivot table column autofit option for Windows

https://exceljet.net/thingstoknowaboutexcelpivottables

18/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Pivot table column autofit option for Mac

You can learn Pivot Tables on your own, free, with a DIY approach that involved lots of research, reading blogs, and
sifting through YouTube videos. But you can also learn pivot tables the FAST way, with a our step-by-step video course.

See also
Can pivot tables save your job?
5 pivot tables you probably haven't seen before

Related courses
Core Pivot

Useful Excel tips, direct to your Inbox


Exceljet tips are quick, clean, and to the point. No fluff.
Enter your email

54Comments

exceljet

Recommend 1

Share

Signup

Login

SortbyBest

Jointhediscussion
DaninGeorgia ayearago

Greatlist,Dave!Iwanttocreateareportwithtwoorthreepivottablesonthesameworksheet,onebelowtheother(thinkofaninvoicewithapivotofthe
monthlychargesfollowedbyapivotofpastpaymentsandbalances).Thenumberofrowsineachpivottablevaries.IsthereawaytohaveExcel
automaticallyaddrowstoaccommodatethepivottableexpansionandpushtheotherpivottable(s)down?Otherwise,youget"APivotTablereportcannot
overlapanotherPivotTablereport".
3

Reply Share

Benjamin>DaninGeorgia ayearago

https://exceljet.net/thingstoknowaboutexcelpivottables

19/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet
Benjamin>DaninGeorgia ayearago

Youcouldhaveahiddensheetwithanidenticalpivottabletotheonethatissupposedtobeontopinthesheetwithtwopivots.Thenyouhavea
macrothatupdatesthepivottableonthehiddensheet,countsthenumberofrowsandaddthatnumberofrowsinbetweenthetwopivottableson
yoursummarysheet.
Somethinglike(fromthetopofmyheadsothiscodewon'twork)
dimxasinteger
worksheet("nameofhiddenpivotsheet").select
pivottable("nameofhiddenpivot").update
x=cells(rows.count,1)(shiftxlup)
worksheet("summarysheet").select
Range("topcelloffbottompivot").entirerow.select
dimyasinteger
dowhiley<x+1activecell.entirerow.insert=""y="y+1"loop=""like=""i=""said,=""it=""won't=""work=""straight=""away=""you=""will=""
have=""to=""google=""and=""adjust=""the=""code=""to=""work.=""i'm=""not=""perfect=""with=""vba=""but=""i=""know=""the=""
solution=""will=""work=""because=""i=""have=""used=""it=""and=""it=""was=""not=""so=""difficult=""to=""make.="">

Reply Share

Benjamin>Benjamin ayearago

What'supwiththeformat?thatlastpartsurewasnotonpurpose...


DaveBruns

Reply Share

Mod >DaninGeorgia ayearago

Thanks!NowaytoautomaticallyinsertrowsthatIknowof.Youcouldputthetablessidebyside.Anotheroptionwouldbetosplittheworksheet
andmakesurethereareplentyofrowsbetweenthetwopivottables.Iusuallyjustkeeplargerpivottablesontheirownworksheetstoavoidthe
hassleofthemrunningintoeachother.

Reply Share

JonZadra ayearago

Isthereaneasywaytodealwithtyposlikethe"Almond"/"Almonde"example?CanIsomehowtakeallinstancesof"Almonde"inthesourcedataand
removethe'e'(specifically,canIdothisfromthepivottable,withouttheaddedstepsofdoingafind/replaceinthesourcedata)?Oristhereawaytosetit
toconsider"Almond"and"Almonde"asthesamevalue?
1

Reply Share

DaveBruns

Mod >JonZadra ayearago

Youcouldmanuallygrouppivottablelabelsasyoulike,butyou'dhavetoassignvaluesforgroupnamesthatmakesenseforallcases.Youcould
alsocreateanewcalculateditem(withanewnamethatmakessense)thatconsistsofAlmond+Almonde.Then,you'dneedtoexcludeAlmond
andAlmondefromthepivottabletoavoiddoublecounting.Finally,youcouldcreateanewcolumninthesourcedataanduseaformulatomap
valuesasyoulike.Noneoftheseapproachesarethatgreat,butIdon'tthinkthere'saneasierwayifyoucan'tfixinthesourcedatadirectly.
1

Reply Share

dave78981>JonZadra 4monthsago

Sort,Filter,Find,Replace

Reply Share

Guest>JonZadra ayearago

InthesourcedatahitCtrl+FtoFindAlmondethenclickreplacetoreplacewithAlmond.

Reply Share

MatthewWallace ayearago

Dave,
Ihaveanothertrickyquestionforyou.
Ihavealargesetofdata,andIamusingpivotchartstomakeaquasiparetochart(displayingthehighestfirstandmovingdown).TheissueIamhaving
isthattherearesomanyrowlabels(over100)thatthechartgetsdilutedbecausethesignificanceofthelastonesisveryminimal.Iwanttochopthelater
partofthegraphofftohighlighttheinformationthatisactuallyvaluable.ThisworksgreatusingtheFilterTop10optionwhenIamusingcountorsum.
However,whenItrytoshowthevaluesasapercentageoftheparenttotal,thepercentageschangeafterapplyingtheTop10filter.Thepercentageistaken
asthevalueoverthesumofthetop10ratherthantheusingthesumofallofthedata.
Idon'twantthepercentagestochange,Ijustwanttohighlightthatparticularareaofthegraph.Top10or20ismuchmoresuitablethanshowing100or
sorowlabelsonthexaxiswhen60+ofthemareinsignificant.
Ican'tseemtofindanyinformationonthetopicandmyworkaroundiscopyandpastingvaluesintoatableabovethechart(lessthanideal).Icansee
myselfusingthisofteninthefuture,anditisapainbecausethechartiseitherdifficulttoreadduetothesizeorthevaluesareinaccurate.
Isthereawayformetoleavethepercentagesascalculatedovertheentiredataandonlyshowthetop10or20withthosepercentages?
Thanksforyourtime.

https://exceljet.net/thingstoknowaboutexcelpivottables

20/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet
Thanksforyourtime.
1

Reply Share

PeltierTech>MatthewWallace ayearago

Howaboutmakingaregularchartfromyouroriginalpivottable(seehttp://peltiertech.com/regular...).Youcanselecthowmanyrowsofthepivot
tabletouse,withoutdistortingthepercentages.

Reply Share

DaveBruns

Mod >PeltierTech ayearago

Thanksforthecomment,Jon.Thereisanextra")"inyourlinkthatcausesittoreturnpagenotfound.Shouldbe:
http://peltiertech.com/regular...

Reply Share

PeltierTech>DaveBruns ayearago

Yeah,Disqusbrokeanotherlink,likealways.IfIpastetheURLin,shouldn'titknowwhereitends?Atleastitletmeeditthelink,
insertaspacebeforetheparenthesis.

Reply Share

DaveBruns

Mod >PeltierTech ayearago

>IfIpastetheURLin,shouldn'titknow...
Yeah,you'dthinkso.IactuallythoughtatfirstIcouldjustedityourcommenttofix,sinceI'mtheallpowerful"mod"butIdidn'tsee
anyobviouswaytodoit.(notrulingoutusererrorthough...)

Reply Share

ZuzerMerchant 2monthsago

Ihavesomepaymentstobemadeeverymonday,fridayandsaturdayeveryweekand1st15thand30theverymonth.isthereanywaypivottablescanhelp.

Reply Share

DaveBruns

Mod >ZuzerMerchant 2monthsago

Pivottablesonlyhelpifyouhaveexistingdatathatcanbesummarizedinsomeway.Youcouldforexampleenterapaymentscheduleaheadof
timeandapivottablecouldsummarizepaymentsduepermonth,etc.

Reply Share

ArunaSaxena 4monthsago

HiIwantedthevaluesthefieldasitis,supposeadatarepresentationofemployeesgettingincentivesyes/noeverymonth
No.Countneededbutactualvalues
Jan.Feb.March
Xxxxx.Y.N.Y

Reply Share

DaveBruns

Mod >ArunaSaxena 4monthsago

PivotTablesaremeanttosummarize,soit'snoteasytodo.Seethisdiscussion:http://stackoverflow.com/quest...

Reply Share

ArunaSaxena>DaveBruns 4monthsago

ThanksD,MydatahasTextvaluessoitcannotworkhere

Reply Share

Martyn18 5monthsago

iwanttocreateapivottablewithdifferentworksheetsinasameworkbook?Isitpossible?

Reply Share

DaveBruns

Mod >Martyn18 5monthsago

Yes,youcanuseafeaturecalledMultipleConsolidationRanges,whichworkswithsomelimitations.Idon'thaveanylinkstoshareatthemoment,
sobesttogoogle.

Reply Share

Katie 6monthsago

Manyofthesetipsarevery,veryhelpful!!!!!Ididnotknowsomeofthese,andtheyansweredquestionsI'vehadforawhile.Thanksagain!

Reply Share

RobertRoth 7monthsago

2ndquestion,I'dliketohavesomeofmyfieldswiththesamecontentmergedintoasinglecell,butnotall.HowdoIachievethis?I'musingTabular
format.

Reply Share

RobertRoth 7monthsago

I'mdroppingbyquitelate,butthe"DaninGeorgia"questionisverysimilartomyissue:

https://exceljet.net/thingstoknowaboutexcelpivottables

21/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet
I'mdroppingbyquitelate,butthe"DaninGeorgia"questionisverysimilartomyissue:
I'musingapivottabletocreateareporttoprintout.Underthetable,I'dliketohavesomeexplanatorytext(likealegend).However,thePivottablelength
mayincrease,whichwouldoverwritethetext.
Itriedtoputthetextinthepagefooter,butranintoalengthlimit.:(
Icouldputitinbelowthetheoreticalmaxlengthofthetable(126rows),butsincetypicaltableswillbeunder40rows,that'stoomuchblankspace,and
willsplitthereportinto2sheetsratherthanthe1that'sprobablyneeded.
HowdoIgetmylegendin?

Reply Share

Senthil 8monthsago

Excellent..Learnedalot..

Reply Share

DavidAslesen 9monthsago

I'verunintosomethingnew.I'mtryingtogetuniquevaluesforalonglistofalphanumericcodes.TheproblemisthatIneedthepivotfunctiontohonor
theCASEofthecharacters,i.e.ABcneedstobedistinquishedfromABC.Ijustfoundoutthatbydefaultthepivottabledoesnotdothat,butconsiders
themthesame.Isthereawaytodothis?Thanks.

Reply Share

DaveBruns

Mod >DavidAslesen 9monthsago

Yes,thelabelsinpivottablesdon'trespectcase.Ifyoucanbuildalistofuniquevalues,youcanusethisformulatocountoccurrences:
https://exceljet.net/formula/c...

Reply Share

dulce ayearago

Wheneveriopenmyexcelfile,thepivottableisreplacedwithanordinarytablewithnumbers.Whyisthat?Pleasehelp.

Reply Share

DaveBruns

Mod >dulce ayearago

Strangeproblem.WhatplatformandversionofExcelareyouusing?AreyoucreatingthepivottableyourselfinExcel?Whatformatareyousaving
thefileto?

Reply Share

RobertNYC ayearago

Thanksforthegreattips!Ithinkyour"Useatableforyourdatatocreatea'dynamicrange'"tipwillsolvemyproblem,butI'dappreciateconfirmation:I
havemultiplepivottablesthatuseasingledatasource.Everyweek,Iwillcompletelyreplacethedatasource/set,butIdon'twanttoredothepivots.CanI
dothefollowing?
1.selectthecellsoftheolddataset
2."clearcontents"oftheselectedcells
3.selectthefirstcellofthetable(whichnowhasnodatainit)
4.pasteinmynewdata
5.HitRefresh...andvoila,thepivottablesareupdatedtoreflectthenewdataset(whichcouldhavefewerormorerowsthanthepriordataset/table)
Alternatively,I'dlikeitifIcouldjustaddthenewdatasettoanewtaband"ChangeDataSource."butifIdothis,thepivottablesloseallthedata.

Reply Share

DaveBruns

Mod >RobertNYC ayearago

HiRobertyourbasicprocesswillworkbutExcel'stablerangewon'tresettothelastusedrowautomatically(Idon'tthink...I'mtestingonaMac
withExcel2011rightnow).Youcanclearthedata,butthenIthinkyou'llneedtodragthelittledatahandleinthelowerleftbackuptothefirst
row,whichisahasslewithlargerdatasets.
So,whatIwoulddoinsteadstartingat#1aboveisselectallthedatarowsinthetablethenrightclickanddeletethealltablerows.Thenjustpaste
inyournewdatastartingat#4.Aslongasthetablestructureisthesame(samecolumnheadings)itshouldworkfine.

Reply Share

fran ayearago

Thankyouforthis!!IhaveaproblemwithExcel2010.Iwanttherowswheretherearenovaluestostillappear.forexampleifIcreateatablethatshows
itemssoldbyweek,Istillwanttheweekswherenoitemswheresoldtoappear.I'mjuststartinttousepivottablesandIbelievethefirstpivotImadehad
theoptiontodothisanditworkes,butnow,withthesamedataIgetthe"whositemswithnodataonrows"grayedout.Doyouknowhowtofixthis?
Thankyou!

Reply Share

Darla ayearago

ThankyouforthewealthofinformationDave.IamhavingaproblemwithPivottables.Ihaveonedatasourceandmultiplepivottablesintheirowntabin
thesameexcelworksheet.WheneverIupdateoneofthepivottablesFilter,AxisorValueitautomaticallyupdatesalloftheotherPivottables.Ican'tfind
outwheretoturnthisoffsothelayoutforeachofthepivottablesisindependent.Iwantallofthepivottablestoaccesstheonedatasourceaswell,so
whenIrefreshthedataitwillrefreshallofthePivottables.Anyhelpwouldbegreatlyappreciated.

Reply Share
https://exceljet.net/thingstoknowaboutexcelpivottables

22/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Reply Share

DaveBruns

Mod >Darla ayearago

HiDarlaThisisaconfusingaspectofpivottables:startinginExcel2010,newpivottablesinthesameworkbookwillsharethesamepivotcache
whentheyarebasedonthesamedatasource.Thismeansthatcertainchanges(e.g.grouping)toonePivotwillautomaticallyaffectothersthat
sharethesamecache.Seethetipabove"Uncloneapivottabletorefreshindependently"foraworkaroundthatwillforceapivottabletouseit'sown
cache.Thiswillbreakthelinktothesamecache,andallowyoutochangeonepivottablewithoutaffectinganother,butyouwillneedthento
refresheachpivottableseparately.However,theywillstillrefertothesamesourcedata.

Reply Share

David ayearago

ThanksforthetipsDave.isthereanywaytopreventaccesstothepivotfieldswhensharingapivottablewithothers?ihavesomesensitiveinfosuchas
ssn'sinonecolumnandwouldliketosharethepivottablebutdonotwanttoallowaccessforotherstoaddthessntothepivottablefortheirviewing.any
advisewouldbegreatlyappreciated,thanks!

Reply Share

DaveBruns

Mod >David ayearago

Thereisnofieldlevelsecurityforpivottables.Youcanhoweveruseworksheetprotectiontopreventusersfrommakinganychangestoapivottable.
Ifyoutakethisapproach,theywon'tbeabletoseethefieldlist,movefields,removefields,etc.
Becauseworksheetprotectionisnotreallythatrobust(itcanbeeasilydefeatedbydeterminedhackers),Iwouldn'ttrustitwithsensitivedatalike
SSNs.
Thesimplestwaytoshareapivottablewith"perfect"securityistocopythepivottables,thenpastevaluesandformatting.Thiscompletelyunlinks
thepivottablefromthesourcedatabutkeepstheformattingintact.(Dependingonyourusecase,sometimesapictureofapivottableworksvery
well).

Reply Share

David>DaveBruns ayearago

thanksforthetips!!muchappreciated!!

Reply Share

WillPrat ayearago

Idon'tlikepivottablesandneverusethem.Itmakesmysheetslookdirtyandunclear.Iprefersorttingmydatasmanualyusingsort&filter.Itried
MicrosoftQueryandwhenIsawthatitusedpivottablesbydefaultIgotridoftheAddin.

Reply Share

JOhn ayearago

Hi,anyoneknowhowtodisplayneedofrecoursesvstimeinpivot.HavethistablewhereIwanttoseetheneedforrecoursea,bandcovertime
Ressurs
Fra
til
a
01.jan
03.jan
b
02.jan
03.jan
c
03.jan
04.jan
a
01.jan

seemore
Reply Share

MatthewWallace 2yearsago

Dave,
Iworkwithpivottablesveryoftenandthedatayoucanrepresentwithpivotchartsisverypowerful.However,IfindoneofthebiggestproblemsisthatI
amunabletoshowthesamplesizealongwiththeaverageorsumcalculationsinadynamicway.Ihavetriedaddingasecondaryaxis,however,whenI
updatethechartbyrefreshingthedataorchangingthefilters,itdisappearsorthedesiredseriesnolongerisplottedonthesecondaryaxis.IfindIam
oftenusingcolumnchartsandthisfeaturewouldbetremendouslyusefulsinceitiseasytobemisleadbyanaveragecontainingonlyafewvalues.
Isthereanywaytoshowthecountasdatalabelsforyouraveragedorsummedseriesortoensurethesecondaryaxisstays?

Reply Share

DaveBruns

Mod >MatthewWallace 2yearsago

HiMatthewIhaven'tneededtodothis,soI'mnotsureonthebestapproach.Onepossibility:setthepivotcharttoshowthemaindata+acount

https://exceljet.net/thingstoknowaboutexcelpivottables

23/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet
HiMatthewIhaven'tneededtodothis,soI'mnotsureonthebestapproach.Onepossibility:setthepivotcharttoshowthemaindata+acount
field.Thensetthecharttypetostackedbar,andplotsamplesizeasasecondserieswiththesamplesontop.Then,displaydatalabelsforthe
sampleseriesandsetthecolorofthebarstonone(iftheyarevisibleatall).Iplayedwiththisideaabitanditseemedlikeitmightworkaslongas
thesamplesizevaluesarealotsmallerthanthemainseries,sothatthesamplesizebarsremainverysmall.
AnotherpossibilitymightbeatotallycustomdatalabellikeChandoomentionshere:http://chandoo.org/wp/2010/05/...Ididn'ttrythissecond
option.

Reply Share

MatthewWallace>DaveBruns 2yearsago

Thanksforyourresponse.ThatisahandyworkaroundandIwillprobablyusethatinthefuture.However,IfailedtomentionthatIam
workingwithclusteredcolumngraphs,andunfortunatelythatsolutionwon'tworkunlessyouknowawaytobuildclusteredstackedgraphs
thataredynamicwiththepivottable.Idonotknowofawaytodothat,andmysearchdoesn'tyieldanyresultseithersoIamstillataloss
forthisparticularissue.Iappreciateyourhelp,thanksagain.

Reply Share

Raghu>MatthewWallace ayearago

Ifacedthesameproblemaboutayearago.TherewasthisYouTubevideothatIfound.Theauthorfoundawayto'cheat'Excelby
creatingthesamebarsagainandthendummyingbothtocreatetwoseparateclusteredcolumns.Thenusethe'formatdataseries'to
separatethetwocolumns.Idon'trememberthevideoortheweblinkreference.Itshouldstillbethere.Ifyouareunabletospotit,
sendarequesttosvvr@aol.in.Iwillsendyouthemethodandillustration.Hopethishelps.

Reply Share

gremlin1 2yearsago

Hi!
Let'ssayyouhave50PT'sreferencingthesamesourcedata.Isthereawaytochangethecriteriaofoneormorefieldsthatareequalacrossthe50PT's
onlyONCEforallordoesthatalwayshavetobedoneonebyone?
Thankyou!

Reply Share

DaveBruns

Mod >gremlin1 2yearsago

TheeasiestwaytodothisiswithPivotTableslicers.DebraDalgleishhassomegoodinfohere:http://blog.contextures.com/ar...

Reply Share

gremlin1>DaveBruns 2yearsago

ThanksDave!!!
Thisissuperhelpful!Muchappreciateit!Cheers

Reply Share

TRosengarten 2yearsago

Goodtips.Iamtryingtosetupadynamicrangeinapivottableforagraphthatwillchangeeverymonth.Mydataisdaily,butIhavegroupeditbymonth
andbyyear.Anysuggestionsonhowtousetheindexormatchfunctionagainstthedatesinthepivottable?

Reply Share

DaveBruns

Mod >TRosengarten 2yearsago

Areyoutryingtoqueryapivottableyou'vealreadybuilt?Thatis,youhavethepivottableandwanttochartthedataitpresents?

Reply Share

TerryTeresaRosengarten>DaveBruns 2yearsago

Ihaveaworksheetwith3700rowsofdata(date,open,high,low,closestockpriceandvollume).Iwanttocreate2piecesofinformation.
Thefirst,adailystockpricetableandchartthatisupdatedwhenanothermonthofinformationisadded.Itisa5yearchart.Thesecond
pieceofinformationismonthlyvolume.Togetthatinformation,Ihavecreateapivottablethatgroupsthedailyinformationintomonthly.
Withthatinformation,Ihadwantedtouseoffset,indexormatchtocreateadynamicrangeformychart.However,thedateinthepivot
tableconvertstotext.Itriedaddingthisformulatothepivotformulas,butitdidn'twork:eomonth(b2&""&a2,0).Anythoughts?

Reply Share

DaveBruns

Mod >TerryTeresaRosengarten 2yearsago

HiTerryIfyouconcatenatelikethat,you'llgettext.Anychanceyoucansendmeasamplexlsofwhatyouhavegoingsofar?You
canemailtodave[at]exceljet.net.

Reply Share

HansSchulze 2yearsago

Excellent.SomethingIcan'tseetomakeworkistheGroupingByAge,whichIhaveseenonseveralwebsites.Whenclickinginthedataareaofthat
column,Idon'tgetaGroupoption.ClickingonthecolumnheadingshowsGrouping,butonlyworkstogrouptwoormorecolumnstogether.Using2010
Standard.

Reply Share

Loadmorecomments

https://exceljet.net/thingstoknowaboutexcelpivottables

24/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

ALSOONEXCELJET

ShortcutstoenterdatainExcel

TheMODfunctionisnotjustfornerds

6comments3monthsago

4commentsadayago

DaveBrunsThanks,Jon!Isometimesmonkeywiththatsetting,butthen

DaveBrunsHiDanielyes,that'sagoodone.Thesedays,youcanalsouse

endupsettingitbacktothedefaultandjustuseshortcutstocontrolagain.

ISODDandISEVEN,butIstilluseMODmyselfforthesamereasonyou
mention.

Sumifcellsbeginwith

Howtofindtextwithaformula

2comments7monthsago

9commentsamonthago

DaveBrunsWildcardmatchingdoesn'tworkwithnumbers.Youcansee

GjaltPostDearDaveThankyouforyoureplay!Unfortunatelythat

moreexplanationhere.Theeasiestsolutionwouldbetoaddahelpercolumn

suggestedformuladoesnotworkinmycase.ThetriggerIneedisthelast
commentin

Subscribe

AddDisqustoyoursiteAddDisqusAdd

https://exceljet.net/thingstoknowaboutexcelpivottables

Privacy

25/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Popular Topics
Functions | Formulas
Pivot Tables
Conditional formatting
VLOOKUP | IF function
Keyboard shortcuts
Excel experts | Books

Such a great resource! Really appreciate your help - Carole


https://exceljet.net/thingstoknowaboutexcelpivottables

26/27

5/27/2016

23thingsyoushouldknowaboutExcelpivottables|Exceljet

Excel video training


Quick, clean, and to the point.
Learn more

2012-2016 Exceljet.

Home

About

Blog

Contact

Help us

Search

TwitterFacebook
Google+
RSS

https://exceljet.net/thingstoknowaboutexcelpivottables

27/27

Das könnte Ihnen auch gefallen