Highlight high value row

rehanemis

Board Regular
Joined
Aug 15, 2016
Messages
50
Hi,

I would like to highlight the entire row based on the high value of an item:

Here is sample data.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Item name[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]

Data is sorted by item and I would like to highlight the entire row based on the high value for each item.

any solution?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Maybe
select A2:B12 & use this formula
=$B2=MAX(IF($A2=$A$2:$A$12,$B$2:$B$12))
 
Upvote 0
Maybe
select A2:B12 & use this formula
=$B2=MAX(IF($A2=$A$2:$A$12,$B$2:$B$12))

Great!! worked well.

Can you please also provide bit details how it worked so that I can make amendments or new formula based on this formula logic.

Thanks again!!
 
Upvote 0
Assuming your data is in A4:B14 Highlight the range and use this formula in the conditional formating box. Select a format on the fill tab. If one letter has the same max it will highlight all instances.

=$B4=MAX(IF($A$4:$A$14=$A4,$B$4:$B$14))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
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