More than 3 Conditional Formats in Excel

Share

Facebook
Twitter
LinkedIn

more-than-three-conditional-formats-excel-howtoOne of the most popular posts on this blog is how to become excel conditional formatting rock star. Quite a few commenters there asked me if there is a way to get more than 3 (or 4) conditional formats in excel 2003. Like what you see below:

You can get more than three conditional formats in excel using VBA / macros. Last week I had sometime to put together a simple VBA script using which you can get more than 3 conditional formats in Microsoft excel. Just follow the below 3 steps.

  1. Download the VBA Macro for getting more than 3 conditional formats
    Just copy the VBA Macro cFormat() to your workbook or place it in wherever you keep all your macros.
  2. In your workbook, define 3 named ranges.
    data2use: This range contains the cells to be formatted.
    conditions2use: This range is identical in shape and size to data2use and contains conditions for the data range start from 1 to n (n being the maximum number of conditional formats your would like to have)
    formats2use: This range contains “n” cells each formatted in a way you would like to format the cells in data2use range.

    See this illustration to understand how these 3 ranges are used to create more than 3 conditional formats:

    more-than-three-conditional-formats-excel-illustration

  3. Finally hit Alt+F8 (or menu > tools > macro > macros) and run the cFormat macro. The conditional formatting macro you have just downloaded will format the “data2use” range by scanning “conditions2use” range and using the formats in “formats2use” range. If you are curious to see how the VBA script looked like, see the cFormat macro code
  4. Make sure you have downloaded the workbook with code for getting more than 3 conditional formats in excel

What would you use this trick for? A giant heat map, project plan … ?

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 “FREE Calendar & Planner Excel Template for 2025”

  1. Md says:

    Hi,
    I downloaded this 2025 Calendar template. I checked the custom tab. Is it possible to change the weekend Fri & Sat.

    Thanks

  2. Nitesh says:

    Activities of some dates are not getting displayed on "Any month" and "printable calendar" sheets.
    e.g. Activity of 24 Apr 25.

  3. Kristin Finn says:

    Love this calendar... I have highlight planner dates enabled but all dates are blue, is it possible to customize the color based on the type assigned to each date?

  4. Peter says:

    What would be the right way to add more Holidays in the Customizations?

    Inserting rows in the Holiday List causes the blank cells in the calendar to turn Blue.

  5. Gabe says:

    This is amazing!!! The best I've seen so far!! Is it possible to update it to consider a column for the final date? That way, if an event lasts more than one day, it repeats in the calendar

  6. Kalaignan says:

    How do we change/insert the customization "Icon Options" ?

  7. Jackie William says:

    Is there anyway this can turn into an academic calendar (ie. start month is July and runs all the way through June of next year)?

  8. Rebecca says:

    Is there a way to make it something that is more than a day without having to add it to every day of that week.

Leave a Reply