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

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.
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,216,389
Messages
6,130,323
Members
449,573
Latest member
bengee54

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