Conditional formatting coloring cells not meeting criteria

mystie

Board Regular
Joined
Feb 15, 2017
Messages
70
Hello everybody!

I have a spreadsheet with several columns containing numerical data. I'd like to color the cell with the largest value in each column. I have set up conditional formatting using the following formula

Code:
=AND(C8=MAX(C8:C47),C8<>"")

This formula applies to range =$C$8:$R$47.

However, the formatting doesn't work correctly. In some columns it colors cells which don't meet the criteria.

For example, in one column, the cells containing the values 73, 72, 70, 67 were colored, when the largest value is 73.
In another column where the largest value is 83, it colored the cells with values 83, 74, 67.

Any help on how to make the formatting work?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Do you have other conditional formatting rules in your workbook?
Is it possible that some of those are within the range that you have designated?

Go to manage rules and choose "This worksheet" from the drop-menu.
Does that bring up ranges and rules applicable to your specified range?
 
Upvote 0
I've found the mistake. I've edited the rule as follows:
Code:
=AND(C8=MAX(C$8:C$47),C8<>"")
and now it works.

Though the columns change, the rows should not.

Brian, thanks for your input. :)
 
Upvote 0

Forum statistics

Threads
1,224,531
Messages
6,179,379
Members
452,907
Latest member
Roland Deschain

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