Resetting the default settings for all my pivot tables takes forever! No worries! Here's a piece of VBA code that makes resetting these a breeze! Why should I bother adjusting, though? Whilst most of these settings are more of a "visual best practice", they can have an impact on how people perceive your analysis Unfamiliar … Continue reading How Do I Quickly Reset a Pivot Table Default Settings with VBA?
If you happen to be retrieving the data for your analysis by directly connecting Excel to a database, you might often encounter fields that have no spaces between their distinct words. Whilst this is indeed best practice when writing your SQL query (having to deal with spaces in SQL aliases can be a very annoying … Continue reading How Do I Quickly Insert Blank Space Between Upper Characters in a Pivot Field Title?
One of my recent articles elaborated on how to change the name of a Value Pivot Field under the assumption that the change had to be applied on all fields in all the pivot tables in the spreadsheet. It may be very often, however, that you only need to change the names of only 1 … Continue reading How do I quickly change the Pivot Field Name of Only Specific Fields?
There are a couple of ways you could approach it: Option 1: Get rid of the default "sum of", "count of" that gets automatically inserted when you're building a pivot table Do comment out the irrelevant lines, though! For example, if you do not have count fields or average fields, make sure that those are … Continue reading How Do I Quickly Change a Pivot Value Field Name with VBA?
Is there a way I could change the number formatting of all my pivot fields without having to spend forever on it?! Sure! The VBA snippet below has some of the most common number formats, which you can directly re-use in your code! PS. Do make sure to un-comment the formats that you do not … Continue reading How Do I Quickly Change a Pivot Field Number Formatting with VBA?
I had an interesting case a couple of years back, which resulted in quite a bit of head-scratching on my part. I was working as a reporting analyst and one of my key deliverables was to produce a monthly analysis of the hours that our consultants had logged on different projects. The analysis was to … Continue reading How do I re-filter only selected Pivot Tables in my workbook?
• You’ve got to change a bunch of value fields that have all been automatically added as “Count” instead of “Sum”? • You need to "average" rather than "sum"? • You’ve suddenly realized that you should be using “Count Numbers” instead of “Count” in a dozen of your spreadsheet pivot tables? Cheer up! You can … Continue reading How Do I Quickly Change a Pivot Table Summary Function with VBA?