top n list by criteria (including between dates)

oysteinjha

New Member
Joined
Aug 11, 2017
Messages
2
Hi!
I am trying to figure out how to make a top n list of the most common text based og 2 criterias (date between and text)

Assuming i have a list as shown below, in columnD i want to be able to list the top n colors from columnA based on the criteria that it is an Bmw (columnB) and sold date within 2017 (ColumnC)

[TABLE="width: 500"]
<tbody>[TR]
[TD]ColA[/TD]
[TD]ColB[/TD]
[TD]ColC[/TD]
[TD]ColD (desired result)[/TD]
[/TR]
[TR]
[TD]Color[/TD]
[TD]Car[/TD]
[TD]Sold date[/TD]
[TD]Top3 Bmw colors sold 2017[/TD]
[/TR]
[TR]
[TD]red[/TD]
[TD]Audi[/TD]
[TD]01.08.2017[/TD]
[TD]red[/TD]
[/TR]
[TR]
[TD]blue[/TD]
[TD]Bmw[/TD]
[TD]01.02.2017[/TD]
[TD]blue[/TD]
[/TR]
[TR]
[TD]red[/TD]
[TD]Bmw[/TD]
[TD]01.01.2016[/TD]
[TD]yellow[/TD]
[/TR]
[TR]
[TD]blue[/TD]
[TD]Audi[/TD]
[TD]01.08.2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]red[/TD]
[TD]Bmw[/TD]
[TD]02.06.2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]blue[/TD]
[TD]Audi[/TD]
[TD]01.08.2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]red[/TD]
[TD]Bmw[/TD]
[TD]01.08.2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]blue[/TD]
[TD]Bmw[/TD]
[TD]01.08.2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]red[/TD]
[TD]Audi[/TD]
[TD]01.08.2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]yellow[/TD]
[TD]Audi[/TD]
[TD]01.01.2016[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]yellow[/TD]
[TD]Bmw[/TD]
[TD]01.08.2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]red[/TD]
[TD]Bmw[/TD]
[TD]01.08.2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]yellow[/TD]
[TD]Bmw[/TD]
[TD]01.01.2016[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Hope someone can help !

Regards,
Øystein Andresen
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,226,735
Messages
6,192,733
Members
453,752
Latest member
Austin2222

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