PTR logo

Blog Post

Conditional Formatting - Using Formula

Conditional Formatting - Using Formula
IR

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:

  1. 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.

  1. Select the Home tab, and then select the Conditional Formatting Command from the Styles Group. Select New Rule...

  1. Select the bottom option, use a formula to determine which cells to format

  2. Type in the formula you want to use, in the example above that would be, =B2:B6 > 200

  3. 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.

  1. 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

IR

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.

Latest Articles

PTR FAQs

See our FAQs or get in contact for more information on any of our services, solutions, or to start your PTR journey.

Ready to take your business to the next level?

Reach out to our team of experts and learn more about our consultancy and training services.