Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Conditional formatting in Pivot Tables

Today I am going to speak about a small problem that happens when you are trying to apply
conditional formatting on Pivot Tables. It’s not complex rather its nifty!

Consider this Pivot Table..

We have Product Category, Product ID and its Sales. What if I ask you to make it a little fancy
and apply conditional formatting (data bars) on it ?

Applying Conditional Formatting on Pivot Tables – Wrong Way!


Shares
1. Now if you selected the sales column of the Pivot Table
2. Went to Conditional Formatting
3. And applied a Data Bars on it
4. That ne but the process isn’t complete yet and you are missing out on an additional step
 

Applying Conditional Formatting on Pivot Tables – Right Way!

Shares
1. Select the sales column of the Pivot Table
2. Conditional Formatting
3. Apply Data Bars on it
4. Don’t forget to – Click the little icon at the bottom of the data selected and apply the formatting
rule to the Pivot Fields
 

What di erence does it make?


1. If you don’t do the last step – Conditional Formatting is applied on the cells selected rather than
on Pivot Table Fields
2. In case your pivot table structure changes, your formatting will go for a toss. Because your
formatting was applied to the cells and not to the Pivot Table Fields
 

Little Nuances!
1. You might have noticed that there were 3 options available when you clicked on the drop down
Shares for applying conditional formatting to the pivot table. Here is what they mean!
Selected Cells – Will apply the formatting to selected cells only
All cells showing “Total Sales” values – Conditional Formatting will be applied to Total Sales
irrespective of the pivot table structure. For eg – As of now we have Category, Product ID
and Sales, even if you remove the Product ID from the pivot, the formatting will remain
intact on the sales
All cells showing “Total Sales” values for “Product ID” – If you remove  product ID from the
Pivot, the formatting on sales will disappear. Because the formatting is applied on “Sales
for Product ID” and not the standalone “Sales” Field
2. This option will appear for all the built in Conditional Formatting features (Highlight Cells, Top
Bottom Rules, Colors, Data Bars, Icons etc..) when applied on the Pivot Table
3. Just in case you lose the drop down, you can still change the formatting options from the Edit
Rule Dialogue box

Shares
 

DOWNLOAD THE EXCEL FILE USED HERE (https://www.goodly.co.in/wp-


content/uploads/2017/08/Conditional-Formatting-in-Pivot-Tables.xlsx)

Which method do you use ?


Have you been using the conditional formatting correctly? Let me know in the comments

Download Smart Ebooks on


Excel and PowerPoint Presentations

Send me the e-books! ()

Rank data based on 2 conditions Transpose rows into separate columns


(https://www.goodly.co.in/rank-data-based-on-2- (https://www.goodly.co.in/transpose-rows-into-
conditions/) separate-columns/)

Previous Post Next Post

7 Comments www.goodly.co.in 
1 Login

 Recommend 2 t Tweet f Share Sort by Best

Join the discussion…

LOG IN WITH OR SIGN UP WITH DISQUS ?

Name

Shares
SALEH FARAJ
− ⚑
2 months ago
2 months ago
Thanks a lot .This post solved a big problem for me. I really appreciate your effort.
1△ ▽ Reply

Chandeep > SALEH FARAJ


− ⚑
2 months ago

Glad it helped :)
△ ▽ Reply

GraH
− ⚑
a year ago

During a training session this year, some-one told me she was colouring all individual cells of a
pivot. I almost suffered from an instant heart attack. So a few weeks later, after a full recovery
from this chock, I posted a similar tutorial @ work.
△ ▽ Reply

Chandeep > GraH


a year ago
− ⚑

hahaha... There are moments when nerds do get an attack especially when people do arduous
work for no reason
Bro why don't you write some of your nifty tricks on Goodly. I would love to have your post
published!! :)
△ ▽ Reply

GraH > Chandeep


a year ago
− ⚑

Too much honour dude! It is very hard to find topics that aren't yet described by some-one
else. I'm more of a re-tweeter :-)
Yet though, I once inspired Chandoo to write a topic about bikers on a hill. So sometimes I do
get creative. I'll send you a suggestion by mail on combining 2 topics
you write about on your blog: Excel and PowerPoint.
△ ▽ Reply

Chandeep > GraH


a year ago
− ⚑

Sure.. Look forward to it!


△ ▽ Reply

GraH > Chandeep


a year ago
− ⚑

Just give me some (extra) time... Holidays are over and already rather busy.
△ ▽ Reply

Shares
ALSO ON WWW.GOODLY.CO.IN

Learning and Development Dashboard in Happy 4th Birthday Goodly


Learning and Development Dashboard in Happy 4th Birthday Goodly
Excel / PowerBI 2 comments • a year ago
1 comment • 8 months ago GraH — I must admit being a bit
Whoopsie Land — Awesome!!! Avatardisappointed for not receiving a real slice of
Avatar chocolate cake in the end :-/ Just …

What is Advanced Excel ? 4 Simple Excel Tricks


5 comments • 9 months ago 1 comment • 7 months ago
Sonika Singh — My story of Advance excel -I Abdul Quayum — Top Tips, keep it up!
Avataronce went for an interview, and she asked Avatar
me do you know "Advance …

✉ Subscribe d Add Disqus to your siteAdd DisqusAdd 🔒 Disqus' Privacy PolicyPrivacy PolicyPrivacy

Search

Shares
Hi, welcome to Goodly, I am Chandeep Chhabra. I regularly learn new things and post about
Excel and PowerPoint tips on this blog. I am building this blog as a amazing resource house on
Excel and PowerPoint presentations...
Read More about Chandeep (https://www.goodly.co.in/about)

Latest Post
Unpivot Data with 2 Headers (https://www.goodly.co.in/unpivot-data-with-2-headers/)

Unique Dates Challenge (https://www.goodly.co.in/unique-dates-between-2-dates/)

Leave Data Analysis using Power Query – Case Study (https://www.goodly.co.in/leave-data-


analysis-using-power-query/)

Create Relationships in Power Pivot and Power BI (https://www.goodly.co.in/create-


relationships-power-pivot-power-bi/)

How to Create a Pivot Table in Power BI (https://www.goodly.co.in/create-pivot-table-in-


power-bi/)

Popular Posts
Learn 100 Excel Formulas (https://www.goodly.co.in/learn-excel-formulas/)

Excel and PowerPoint Smart EBooks (https://www.goodly.co.in/excel-and-powerpoint-


smart-ebooks/)

5 Classic PowerPoint Animations – Free Course! (100th Blog) (https://www.goodly.co.in/5-


classic-powerpoint-animations/)

10 Excel Habits that you must develop (https://www.goodly.co.in/10-excel-habits-that-you-


must-develop/)

Free Pivot Table Course + A Sales Dashboard for YOU ! (https://www.goodly.co.in/free-


pivot-table-course-and-sales-dashboard/)

A Human Resource Dashboard ! (https://www.goodly.co.in/a-human-resource-dashboard-


in-excel/)

The 3 musketeers in PowerPoint – CTRL, ALT & SHIFT (https://www.goodly.co.in/ctrl-alt-


and-shift-shortcuts-in-powerpoint/)

Shares
Create a Map Chart for Plotting Cities (https://www.goodly.co.in/create-a-map-chart-for-
plotting-cities/)

A comprehensive guide to VLOOKUP + 5 crrraaazzy tricks ! (https://www.goodly.co.in/a-


comprehensive-guide-to-vlookup-5-crrraaazzy-tricks/)

Financial Modeling – Getting Started !! (https://www.goodly.co.in/ nancial-modeling-


getting-started/)

Topics
Advanced Filter ( 2 ) (https://www.goodly.co.in/tag/advanced- lter/)

Advanced Filter Dashboard ( 1 ) (https://www.goodly.co.in/tag/advanced- lter-dashboard/)

Animations ( 1 ) (https://www.goodly.co.in/tag/animations/)

Array Formulas ( 1 ) (https://www.goodly.co.in/tag/array-formulas/)

BSP-consulting ( 3 ) (https://www.goodly.co.in/tag/bsp-consulting/)

Charting in Excel ( 2 ) (https://www.goodly.co.in/tag/charting-in-excel/)

Charting Tricks ( 5 ) (https://www.goodly.co.in/tag/charting-tricks/)

Charts ( 2 ) (https://www.goodly.co.in/tag/charts/)

consulting ( 1 ) (https://www.goodly.co.in/tag/consulting/)

Custom Formatting ( 1 ) (https://www.goodly.co.in/tag/custom-formatting/)

Custom Sorting ( 1 ) (https://www.goodly.co.in/tag/custom-sorting/)

Dashboards ( 16 ) (https://www.goodly.co.in/tag/dashboards/)

Data Validation ( 1 ) (https://www.goodly.co.in/tag/data-validation/)

DB-consulting ( 3 ) (https://www.goodly.co.in/tag/db-consulting/)

Dynamic Charts ( 6 ) (https://www.goodly.co.in/tag/dynamic-charts/)

Excel ( 2 ) (https://www.goodly.co.in/tag/excel/)

Excel Challenge ( 12 ) (https://www.goodly.co.in/tag/excel-challenge/)

Excel Charts ( 13 ) (https://www.goodly.co.in/tag/excel-charts/)

Excel Formulas ( 50 ) (https://www.goodly.co.in/tag/excel-formulas/)

Excel Functions ( 32 ) (https://www.goodly.co.in/tag/excel-functions/)

Excel Shortcuts ( 6 ) (https://www.goodly.co.in/tag/excel-shortcuts/)

Excel Tips ( 27 ) (https://www.goodly.co.in/tag/excel-tips/)

Excel Tricks ( 32 ) (https://www.goodly.co.in/tag/excel-tricks/)

Financial Modeling ( 3 ) (https://www.goodly.co.in/tag/ nancial-modeling/)

Shares Financial Modeling in Excel ( 1 ) (https://www.goodly.co.in/tag/ nancial-modeling-in-excel/)


Formatting Tips ( 3 ) (https://www.goodly.co.in/tag/formatting-tips/)

fun ( 1 ) (https://www.goodly.co.in/tag/fun/)

Home ( 1 ) (https://www.goodly.co.in/tag/home/)

Making Stunning Slides ( 1 ) (https://www.goodly.co.in/tag/making-stunning-slides/)

Org Charts in Excel ( 1 ) (https://www.goodly.co.in/tag/org-charts-in-excel/)

Personal ( 4 ) (https://www.goodly.co.in/tag/personal/)

Pivot Tables ( 10 ) (https://www.goodly.co.in/tag/pivot-tables/)

PowerPoint ( 2 ) (https://www.goodly.co.in/tag/powerpoint/)

PowerPoint Presentations ( 1 ) (https://www.goodly.co.in/tag/powerpoint-presentations/)

PowerPoint Presentation Tips ( 1 ) (https://www.goodly.co.in/tag/powerpoint-presentation-


tips/)

PowerPoint Slide Master ( 1 ) (https://www.goodly.co.in/tag/powerpoint-slide-master/)

PowerPoint Tricks ( 1 ) (https://www.goodly.co.in/tag/powerpoint-tricks/)

PR-consulting ( 2 ) (https://www.goodly.co.in/tag/pr-consulting/)

Quick tips ( 1 ) (https://www.goodly.co.in/tag/quick-tips/)

Slicers ( 4 ) (https://www.goodly.co.in/tag/slicers/)

Timelines ( 1 ) (https://www.goodly.co.in/tag/timelines/)

training ( 1 ) (https://www.goodly.co.in/tag/training/)

VBA ( 3 ) (https://www.goodly.co.in/tag/vba/)

Visualizations ( 4 ) (https://www.goodly.co.in/tag/visualizations/)

Vlookup ( 4 ) (https://www.goodly.co.in/tag/vlookup/)

© Goodly
About (https://www.goodly.co.in/about/) Training (https://www.goodly.co.in/training/)
Consulting (https://www.goodly.co.in/consulting/) Contact Us (https://www.goodly.co.in/contact/)
Blog (https://www.goodly.co.in/#st1)

Shares

You might also like