Most Common Values Matching certain criteria

Sweetwater

New Member
Joined
Jun 6, 2018
Messages
1
Hey Everyone,

First time posting....I'm trying to return the top 5 values that occur in a data dump that match certain criteria that can be dynamically changed.

For Example:

[TABLE="width: 500"]
<tbody>[TR]
[TD]ATL[/TD]
[TD]BDL[/TD]
[TD]040[/TD]
[TD]4.99[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ATL[/TD]
[TD]BDL[/TD]
[TD]040[/TD]
[TD]3.99[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]STL[/TD]
[TD]BDL[/TD]
[TD]356[/TD]
[TD]20.00

[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]NYC[/TD]
[TD]BLR[/TD]
[TD]025[/TD]
[TD]14.99[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DET[/TD]
[TD]NTI[/TD]
[TD]357[/TD]
[TD]4.00[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


The data is formatted so each row represents one unique entry based on Date, about 100k rows.

In a separate tab with Data Validation you would select a value from column A, B, and C. I would then want to return top 5 most common values in column D based on my selection from the data validation. I'm used to returning a unique value this way based on Index Match, but I would want to return the 5 different values based on that selection.

I hope this makes sense. Please let me know if you have any further questions.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Welcome to the forum.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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