Conditional highlighting of 2 cells in a multiple cell range, when all cells have the same value

MdPreez

New Member
Joined
Aug 17, 2022
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
I am trying to add conditional highligting for only 2 cells where the range has the same data.
IE:
A1:E1 with the exact same value of
6,0; 6,0; 6,0; 6,0; 6,0

The current formula I am using to highlight the 1st instance is:
=AND(A1=MAX($A1:$E1),COUNTIFS($A1:A1,A1)=1)

I NOW need to have 2 of these cells highlighted if ALL cells are the exact same value.

The reason for this is to id the 2 highlighted cells, of the 5, that will not be calculated.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
How about
Excel Formula:
=IF(COUNTIFS($A1:$E1,$A1)=5,AND(A1=MAX($A1:$E1),COUNTIFS($A1:A1,A1)<3),AND(A1=MAX($A1:$E1),COUNTIFS($A1:A1,A1)=1))
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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