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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,552
Messages
6,131,320
Members
449,644
Latest member
tbhoola

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