5 Simple & Useful Conditional Formatting Tricks

Share

Facebook
Twitter
LinkedIn

Excel conditional formatting is incredibly useful feature. In this page, let me share 5 simple & creative tricks for you.

If you are a beginner, please read introduction to conditional formatting page.

Trick 1 - Icons, but not too many

Please click on below button to download the Excel file with all these tricks and refer to it when reading the article.

Iconset feature of conditional formatting is great for highlighting important bits of your data. But often then can be overkill. Let’s say you want to use icons to show which products have increased or decreased their sales. But you don’t want them all the time…

trick1-icons with limits

You can do this by setting up upper & lower limit for the conditional  formatting rule and creating a 3 icon rule (with no cell icon for middle one).

See this:

icon limits cf rule

Trick 2 - Highlight entire row / column

If you want to highlight which values are above 2000, you can easily apply the greater than… conditional formatting rule. But what if you want to highlight the entire row when certain column has values above 2000?

highlight entire row rule

You can use formula based conditional formatting rules for this.

  1. Select all your data
  2. Go to “new rule” on conditional formatting
  3. Set the rule type to Use a formula to determine which cells to format
  4. Type the rule as depicted below
  5. Set formatting options
  6. Now your row will be highlighted

cf rule for highlighting entire row

Trick 3 - Advanced Zebra Shading

Zebra shading (highlighting every other row) is proven technique to improve readability of your data. But Excel doesn’t have built-in zebra shading options for non-tabular data. You can use Conditional Formatting rules to add the zebra shading easily. Below is an example of advanced zebra shading.

zebra lines with conditional formatting

To add regular zebra shading (highlight alternative rows):

  1. Select your data and add a new formula based CF rule.
  2. Type the rule as =ISEVEN(ROW())
  3. Set the formatting you want
  4. Apply the rule.

Rule for advanced zebra shading:

  1. Use the rule like this to highlight 5 rows at a time.
  2. =ISODD(QUOTIENT(ROW()-ROW(header_row)-1, 5))

Change the header_row to absolute reference of header row cell.

Trick 4 - Highlight dates in next week

Imagine you are tracking a project plan in Excel. you have a bunch of due dates and want to instantly see which items are due next week. You can use relative dates feature of conditional formatting rules to do just that.

relative dates cf rule

  1. Select the column with dates
  2. Go to conditional formatting > highlight cells
  3. Click on “a date occurring” option
  4. Select the period you want
  5. Apply the format you need
  6. Done.

Trick 5 - Databars & Icons in the same cell

Databars are good. Icons are good. Together they are great.

Ever wanted to show an additional icon when databar reaches the goal (say 100%)? 

databar and icon in the same cell

To get them in the same cell,

  1. Add databar rule 
  2. Set the maximum value of “databar” to twice the target. So 2 for 100%.
  3. Add icon rule as well. Set the icon to show only when value is 100% and no cell icon for other cases.
  4. Now, you get both databar and icon in the cell.

Download Example Workbook

Click below button to download the example workbook with all 5 techniques. Examine the rules or use sample data to replicate the ideas.

5 Tricks - Video

If you prefer to see a video with these tricks explained, check it out below or watch it on my YouTube channel.

More Conditional Formatting Tricks

on / off conditional formatting in dashboards - tipConditional formatting is a must have for any advanced Excel user. Please learn more about this powerful feature by reading these examples.

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

11 Responses to “Fix Incorrect Percentages with this Paste-Special Trick”

  1. Martin says:

    I've just taught yesterday to a colleague of mine how to convert amounts in local currency into another by pasting special the ROE.

    great thing to know !!!

  2. Tony Rose says:

    Chandoo - this is such a great trick and helps save time. If you don't use this shortcut, you have to take can create a formula where =(ref cell /100), copy that all the way down, covert it to a percentage and then copy/paste values to the original column. This does it all much faster. Nice job!

  3. Jody Gates says:

    I was just asking peers yesterday if anyone know if an easy way to do this, I've been editing each cell and adding a % manually vs setting the cell to Percentage for months and just finally reached my wits end. What perfect timing! Thanks, great tip!

  4. Jon S says:

    If it's just appearance you care about, another alternative is to use this custom number format:
    0"%"

    By adding the percent sign in quotes, it gets treated as text and won't do what you warned about here: "You can not just format the cells to % format either, excel shows 23 as 2300% then."

    • Steven Peters says:

      Dear Jon S. You are the reason I love the internet. 3 year old comments making my life easier.

      Thank you.

  5. Jon Peltier says:

    Here is a quicker protocol.

    Enter 10000% into the extra cell, copy this cell, select the range you need to convert to percentages, and use paste special > divide. Since the Paste > All option is selected, it not only divides by 10000% (i.e. 100), it also applies the % format to the cells being pasted on.

  6. Chandoo says:

    @Martin: That is another very good use of Divide / Multiply operations.

    @Tony, @Jody: Thank you 🙂

    @Jon S: Good one...

    @Jon... now why didnt I think of that.. Excellent

  7. sajith says:

    Thank You so much. it is really helped me.

  8. Winnie says:

    Big help...Thanks

  9. Chris Fry says:

    Thanks. That really saved me a lot of time!

  10. Texas says:

    Is Show Formulas is turned on in the Formula Ribbon, it will stay in decimal form until that is turned off. Drove me batty for an hour until I just figured it out.

Leave a Reply