For this scenario, we can use Conditional Formatting. This is a great feature of Excel that brings life to our spreadsheets and makes them much easier to read. Conditional formatting also makes your files dynamic and interactive. The user can quickly change the cell that contains the criteria and the matching rows will be highlighted. In the image above I changed the value in cell E3 to 6. All rows that contain a 6 in column E are immediately formatted with the font & fill color I specified in the conditional formatting rule. Conditional formatting is a fun feature that your boss and co-workers will love. Let's get it set up!
Your New Formatting Rule window should look something like this:
Once you hit OK, you will be taken back to the Conditional Formatting Rules Manager window. Here you will see the rule that you just created.
You can click on Apply, but at this point the rule will only be applied to cell E6 because that is the cell you started from and it is what's listed in the Applies to field. We want to extend this rule to the whole table.
To do that, click on the icon to the right of that field (it has an upward facing arrow) and select the range of the entire table. In the example, this would be the data ranging from B6 to G1002 (=$B$6:$G$1002).
Click Apply one more time and the new formatting applies to the entire data set.
The rule that you create doesn't always have to set a value equal to (=) another value. You can change the format for rows that are
any specific value. And it doesn't have to be a number. It can be text, dates, or other data types as well.
It doesn't matter which of those comparison operators you use. The conditional formatting is just applied based on whether your logic statements are true or false.
If you'd like to get a better understanding of logic statements, as well as IF functions, I recommend this tutorial:
The sample file also uses a drop-down list (data validation list) in cell E3. Check out my article on How to Create Drop-down Lists in Cells – Data Validation Lists to learn more.
I hope this is helpful to you. If you have any questions about the process, please leave them in the comments. You can also leave any suggestions or recommendations you might have on the topic.