MAX formula and Conditional Highlighting of 1st instance of a duplicate value

MdPreez

New Member
Joined
Aug 17, 2022
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hi All,
I hope you can help? I am quite desperate!

I need to highlight only the 1st instance of MAX value in a row over 5 columns.

IE: A1:E1 with the values being:
7; 7; 5; 6; 3.

I want to highlight ONLY ONE/THE FIRST instance of the 7.

What do I need to add to the formula (which highlights both cells with 7 in it) below to make that happen?
=A1=MAX(A1:E1)

Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi & welcome to MrExcel.
Try
Excel Formula:
=AND(A1=MAX($A1:$E1),COUNTIFS($A1:A1,A1)=1)
 
Upvote 0
Hi & welcome to MrExcel.
Try
Excel Formula:
=AND(A1=MAX($A1:$E1),COUNTIFS($A1:A1,A1)=1)
Awesome!
Can this also be applied to the Top ranked formula where there is a duplicate?
IE: If I use Top 1 ranked
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Hi, I have a follow-up question regarding the highlighting.

Your solution for my initial questions works like magic. Now, I am trying to do the following ons the same data, so:

A1:E1 with the exact same value of
6,0; 6,0; 6,0; 6,0; 6,0

Your formula accurately highlights the 1st instance!
=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.

Hope this makes sense!
Thank you.
 
Upvote 0
As this is now a significantly different question, it needs a new thread. Thanks.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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