Conditional formatting using formulas

Status
Not open for further replies.

Lmaonade

Board Regular
Joined
Jan 5, 2018
Messages
52
Hi, I'm having an issue trying to use conditional formatting on a selection of data.

The only way I seem to be able to set up the conditional formatting at the moment is by doing it row by row, which is taking a long time.

Is there anyway to set it up to have just a couple of rules for the entire selection of data?

ABCDEFGHI
1TargetWeek1Week2Week3Week4Week5Week6Week7Week8
2400300241433510402382375472
3210018002200199324012200321219312346
4152160150153135147160173144
5151313141619142211

<tbody>
</tbody>

So for this example if I want any of the data in cells B2 to I5 are higher than their corresponding targets I'd want the cell Green, and if lower then red. So the result will look like above.

My data I have probably about 35 rows so I'd really rather not do this individually for each row.

Thanks,
Andy
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
These two should do it:

=AND(B2<>"",B2<$A2)
=AND(B2<>"",B2>$A2)

Apply to eg B2:I100
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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