Change cell background when using multiple values

sadsfan

Board Regular
Joined
Apr 30, 2003
Messages
217
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have some data in a column (test scores) that I want to group together and then for a cell background to change colour when another cell in the same row meets a certain condition. For example:

I want to say that if cell b1 has a value of 7,9, or 11 I would like that cell to change colour when another cell in the same row or specified data range has the value of 19, 21 or 23.

If cell b1 has a value of 13,15 or 17 I would like that cell to change colour when another cell in the same row or specified data range has the value of 25, 27 or 29.

Is it possible to do this, and if so how!?

Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
If you have xl2007 or later you should be able to accomplish this using Conditional Formatting (CF). You make a series of rules that, if true, would color the cell based on your specified format for that rule.

Just let me know if you need help doing that.
 
Upvote 0
Unfortunately I only have 2003, I tried using CF but it didn't work as I needed to change the cell background colour based on the values in another range of cells.
 
Upvote 0
Unfortunately I only have 2003, I tried using CF but it didn't work as I needed to change the cell background colour based on the values in another range of cells.
Excel 2003 shouldn't be a problem unless you want to apply more than 3 different formats. For the sample below I selected B1:B4 and applied the Conditional Formatting shown. Is that the sort of result you are after?

Excel Workbook
ABCDE
1921
22523
373
41119
5
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B11. / Formula is =AND(OR(B1=7,B1=9,B1=11),OR(D1=19,D1=21,D1=23))Abc
 
Upvote 0

Forum statistics

Threads
1,224,565
Messages
6,179,549
Members
452,927
Latest member
rows and columns

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top