Conditional Formatting Dilemma

MntnrMark

New Member
Joined
Dec 18, 2012
Messages
40
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!
 

Some videos you may like

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,526
Office Version
  1. 365
Platform
  1. Windows
Get rid of the IF & just use
Excel Formula:
=$A1=2
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,526
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,530
Messages
5,625,357
Members
416,096
Latest member
forevans

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
Top