Blog Post
Conditional Formatting - Using Formula
Author
Ian Roberts
Date
March 29, 2017
Length
2 mins
Using Formula to determine which cells to format
There are many options to choose from when using conditional formatting, however at times we will need to use formula to manipulate our conditions further.
An example of using a formula to determine which cells to format, would be to format cells in Column A if the relative cell in column B was greater than 200. (Please see below example)
To achieve this:
Select the cells you wish to format, in this example that would be A2:A6, becasue we want the country name cell to fill gold if it meets the above criteria.
Select the Home tab, and then select the Conditional Formatting Command from the Styles Group. Select New Rule...
Select the bottom option, use a formula to determine which cells to format
Type in the formula you want to use, in the example above that would be, =B2:B6 > 200
Select Formats, in the example that will be cell fill gold.
The New Formatting Rule Window will now look like this:
Tips:
- By default the formula will look like this: $B$2:$B$6>200 – you will need to remove the $ otherwise your formatting won’t be relative to the row it is on.
- Whilst typing your formula refrain from using the keybord arrows, this will add cells to your formula relative to the active cell you are in.
OK
The end result will be that any cells that contain values greater than 200, will be filled gold, as pictured below.
For more help with Conditional formatting, please look at our Excel Level 3 Courses.
Share This Page
Ian Roberts
Technical Director
Ian is an incredibly talented solutions architect. He has over 15 years of experience working with data, as part of a broader IT career spanning over 20 years.
PTR FAQs
See our FAQs or get in contact for more information on any of our services, solutions, or to start your PTR journey.