Conditional Formatting Dilemma

MntnrMark

Board Regular
Joined
Dec 18, 2012
Messages
57
I'm puzzled why I can't get this to work. In Column A (spanning literally hundreds of Rows) I have a series of numbers ranging between 1 and 9 (in no particular order). I want to conditionally format Cells B1 through, say, Z500, such that if a number 2 shows up in Column A for any of those 500 Rows then the Rows (B through Z) shade as blue; if a number four shows up in Column A, then shade those Rows orange, etc. So, I highlighted all of the Cells from B1 to Z500, selected "Use a formula to determine which cells to format" and entered (well, tried to) this formula: =IF($a1=2), thinking that would format all Rows with a 2 in Column A blue. (I also tried =IF($A1="2") . . . same problem.) Excel doesn't like that, and I get the "There's a problem with this formula" message. What am I doing wrong and what do I need to change in the formula? Thanks for the assistance!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Get rid of the IF & just use
Excel Formula:
=$A1=2
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,954
Members
448,535
Latest member
alrossman

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