How to format whole row or a Range by Conditional Formating
Sometimes in Excel, we need auto-formatting as soon as a condition in a particular cell or cell range is satisfied then the formatting of the whole row or a cell range should change. This is very easy to do in Excel by using Conditional Formatting.
Let’s take an example. Suppose you have following data in the Excel Sheet
In the above format, you want that as soon as you select Status as “Failed” then for that row, all the Columns like Column A, Column B, Column C and Column D, color should change to Red.
Now Select the Whole Range, where you want to Apply the formatting as shown in the above Picture.
Go to Home Tab –> Conditional Formatting
Now Click on Use a formula to determine which cells to format
In the formula bar, Enter the formula: =$D2=”Failed” as shown in the Picture.
Note: In the formula make sure that you are using $ Sign before the Column Name. But you should not use this sign before Row Number.
Now you can see that the selected Row color is changed to Red where ever Status is Selected as “Failed”. Refer below screen-shot.
Now if you want to change the Color of that complete row wherever the Status is Failed then Follow the below Steps:
Step 1.While Selecting to format, Select the Complete row and then Apply the Conditional Format.
Step 2. Edit the Existing Conditional Formatting by Clicking on Manage Rules in Excel 2007.
In Manage Rules, Enter this Range in Applies To Field.
When you want to format complete row to be formatted then in “Applies to” Field DO NOT enter Column Names.Just you need to Enter the Row Range. Like $1:$1200 as shown below.
My name is Vishwamitra Mishra. Friends Call me Vishwa. This blog is authored by me. I am an Excel Geek. Well, this blog talks a lot about my passion in Excels & Macros so I’ll not talk about it :) I am very much passionate about traveling & quite recently discovered that I am a good photographer too..:P
AND GET A FREE!
E-BOOK FOR EXCEL VBA BEGINNERS
DON'T MISS ANY NEW ARTICLE !
Get your FREE! E-Book & Have Every New Article Delivered Straight To Your Email-Box