Highlight most frequent cell values in the row

Kyrpo

Board Regular
Joined
Jul 24, 2015
Messages
127
Hi Excelers Experts,

So... I have a range of columns from B to M filled with words. I'm looking for a macro that in every row looks for the most frequent name and then color the interior of their cell in yellow.

Dario ItaDario ItaDario ItaJack UsaSimon Usa
Lucas UsaFrank UkLucas UsaFrank UkFrank Uk
Jack UsaJoe DeJames IrlJames IrlLouis Fr

<tbody>
</tbody>

I have no idea where to begin and how complicated this might be.
Any hint would be extremely helpful.

Thanks for you helping

Kind regards ;)
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi,

You don't need code for this, you could use the following formula using Ctrl+Shift+Enter:

{=INDEX(A1:E1,MODE(MATCH(A1:E1,A1:E1,0)))}

NB: the curly brackets will be added when you use the CSE combo.

AP
 
Upvote 0

Forum statistics

Threads
1,215,698
Messages
6,126,270
Members
449,308
Latest member
VerifiedBleachersAttendee

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