CF not working?

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
827
Office Version
  1. 365
Platform
  1. Windows
Hello folks,

I am trying to use conditional formatting on a range of cells that contain a formula: =IF(B3="","",IF(C3=MAX($C$3:$F$36),C3,IF(F3=MAX($C$3:$F$36),F3,""))) etc.
The formula works well and what I am trying to achieve is that when a cell displays the maximum value (as per the formula) that that cell has a yellow fill. I have tried using CF/highlight cell where the value is greater than 0 but this results in all cells having the yellow fill.

What am I doing wrong, please?

Mel
 

Some videos you may like

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
48,367
Office Version
  1. 365
Platform
  1. Windows
Try a formula in this form. Change the H3s to whatever cell you are referencing

=H3<>""
 
Solution

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
827
Office Version
  1. 365
Platform
  1. Windows
Got it! I'm now using CF where the cell does not contain a blank value.

Mel
 

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
827
Office Version
  1. 365
Platform
  1. Windows
Many thanks for your reply, Peter. I managed to figure it out as per post #3

Mel
 

Watch MrExcel Video

Forum statistics

Threads
1,127,005
Messages
5,622,136
Members
415,879
Latest member
drumsmasher

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