Conditional formatting

dbonser

New Member
Joined
Jul 5, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet that has 13 columns. The first column has a value in it. I want the conditioning formatting to paint the cell green if the value in the columns 2-13 is greater than or equal to that value in the first column and paint it red if it is less than the value in the first column. In my conditional formatting for the value to compare it to I do something like =b2 so that if I change that value it would recompare to the other columns. I understand that if it hits the first one and the value is true it will stop, but my problem is that some of the columns do not have values in them yet - they are null. For some of them it paints it red and for others it paints it green, I compared the rules and they look the same. From reading others in the forum it appeared there had to be values in those cells before you could apply conditional formatting. Is that true? If so, that doesn't help because I could manually paint those cells if I want to do one cell at a time, it would defeat the purpose of conditional formatting.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi & welcome to MrExcel.
What should happen if cols 2-13 have values both greater & smaller than col A?
 
Upvote 0
Hi & welcome to MrExcel.
What should happen if cols 2-13 have values both greater & smaller than col A?
If cols 2-13 < col 1 = cell should be red; if cols 2-13 => col 1 = cells should be green
 
Upvote 0
Yes, but what if there are values both greater than & smaller than col A?
 
Upvote 0
Yes, but what if there are values both greater than & smaller than col A?
You only have one value in each cell. If col A row 1 is 500 and on the same row, col b is 25 and col c is 1000, then the cell for b should be red and the cell for c should be green
 
Upvote 0
Ok, that makes sense, I thought you were trying to highlight col A.
For green you can use
Excel Formula:
=B2>=$A2
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,854
Members
449,096
Latest member
Erald

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