Link Name that appears most To Another Cell if Filtered

Lecram

New Member
Joined
Jul 30, 2014
Messages
2
Hello,

I can't figure out the following:

I have a list of names as part of a table in Column D:

Ex: Adam, Bob, Cindy, Dave. When I filter out two names, how can I get the name in Cell A1 that is on a different worksheet to show the name that appears the most. For instance, if my filter in Column D shows the name "Adam" 8 times and "Bob" only 4 times, I want Cell A1 to automatically say "Adam."

Any help?

Thanks,

Lecram
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Welcome to MrExcel.

Maybe try:

=INDEX(D2:D32,MATCH(MAX(COUNTIF(D2:D32,IF(SUBTOTAL(3,OFFSET(D2,ROW(D2:D32)-ROW(D2),,1)),D2:D32))),COUNTIF(D2:D32,IF(SUBTOTAL(3,OFFSET(D2,ROW(D2:D32)-ROW(D2),,1)),D2:D32)),FALSE))

confirmed with Ctrl+Shift+Enter. Adjust the range references to suit.
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,884
Members
449,477
Latest member
panjongshing

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