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…
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).
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?
You can use formula based conditional formatting rules for this.
- Select all your data
- Go to “new rule” on conditional formatting
- Set the rule type to Use a formula to determine which cells to format
- Type the rule as depicted below
- Set formatting options
- Now your row will be highlighted
For ex: D$5>2000 would highlight entire column.
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.
To add regular zebra shading (highlight alternative rows):
- Select your data and add a new formula based CF rule.
- Type the rule as =ISEVEN(ROW())
- Set the formatting you want
- Apply the rule.
Rule for advanced zebra shading:
- Use the rule like this to highlight 5 rows at a time.
- =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.
- Select the column with dates
- Go to conditional formatting > highlight cells
- Click on “a date occurring” option
- Select the period you want
- Apply the format you need
For ex. the rule =AND($D4>TODAY(), $D4<=TODAY()+7) will highlight any rows where column D has a date in next 7 days.
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%)?
To get them in the same cell,
- Add databar rule
- Set the maximum value of “databar” to twice the target. So 2 for 100%.
- Add icon rule as well. Set the icon to show only when value is 100% and no cell icon for other cases.
- 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
Conditional formatting is a must have for any advanced Excel user. Please learn more about this powerful feature by reading these examples.
8 Responses to “5 Simple & Useful Conditional Formatting Tricks”
Thank you for this useful and interesting set of hints for conditional formatting.
Chandoo, I hope that you and your beautiful family have a productive and healthy 2021.
Watch the NASA attempt to land yet another Rover on Mars today!
Thanks Karl. Yes, I did watch the live on Youtube for that. Inspiring achievement indeed.
Thanks for the nice tips.
The formula for zebra shading in trick #3 can be shortened
I use modulo like this
for one-by-one shading since years.
That is a good one Andreas. 🙂
I use the same as Andreas - however, it is always useful to see different ways of doing things. All useful tips and ideas, sometimes the simplest of things can make a big difference. I also looked at your tip for turning on/off the conditional formatting as an option - simple but very effective.
Hi, is there a way to filter cell colors based on conditional formatting results?
Hi Samam.. You can use Filter by color option and it will pick up CF colors too.
I like your point of view. Nowadays people add to many formatting to the sheets. Visibility hurts. Less but focus on more important icons is just enough. I support point of view. Good article though.