On / Off conditional formatting with this simple trick

Share

Facebook
Twitter
LinkedIn

Here is a quick & awesome way to make your dashboards sexy. Add an on / off switch to your conditional formats.

Take a look at this demo to understand what I mean:

toggle-cf-tip

How to add on/off switch to conditional formatting

The trick is to use stop if true feature in your conditional formatting rules screen.

Let’s say you have a few rules in your CF.

  1. Set up a form control check box to toggle the conditional formats
  2. Link it to a cell, let’s say $H$2
  3. Set up a new conditional formatting rule that checks for =NOT($H$2)
  4. No need to set any formatting options for this.
  5. Move this rule to the top in conditional formatting manage rules screen
  6. Check stop if true option for this new rule.
  7. You are done. If your user unchecks the form control, the conditional formats won’t be applied.

on-off-conditional-formats-stop-if-true-option

Related: Introduction to conditional formatting.

Download example workbook

Click here to download the example workbook. Examine the conditional formatting rules to learn how to do this.

Switch on your Excel awesomeness

Conditional formatting is one of the many ways to impress your boss. Learn about other advanced Excel skills and important formulas to make you a rock star at work.

Do you set up on/off switches for CF?

In most of my dashboards, I have something similar. These will help declutter the report.

What about you? How do you add such switches to your reports? Share your tips in the comments section.

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.

One Response to “Excel IF Statement Two Conditions”

  1. Snowman55 says:

    At first I thought you missed an opportunity to introduce the IFS and CHOOSE functions, but I see you have those (buried) in the "10 Advanced IF Tricks..." article.
    Also, by adding a "Check my results" checkbox (I suggest cell Q3) and a couple conditional formatting rules to apply red/green fill, you could help the users check their formulas.

Leave a Reply