Solved

group by months

Posted on 2014-12-17
3
47 Views
Last Modified: 2014-12-22
i have attached a sample workbook.I work like to have a formula/vba that would extract the top 20 totals  for each group.
thanks
top20.xlsb
0
Comment
Question by:Svgmassive
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 40506294
Hello,

put the numbers from 1 to 20 into cells E2 to E21. Copy down so you have these 20 numbers for each group.

Put the dates next to that, starting in F2. Then you can use this array formula in G2

=LARGE(IF($A$1:$A$773=F2,$C$1:$C$773,0),E2)

You need to confirm with Ctrl-Shift-Enter. Then copy down.

screenshot
cheers, teylyn
0
 
LVL 22

Expert Comment

by:yo_bee
ID: 40506300
You can leverage Pivot Tables.
I have attached your data in a pivot table. sheet 2

top20.xlsb
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 40506424
yo bee, while a pivot table can be filtered to show top x values, the one you posted does not apply this technique. Where are the top 20? A pivot will not work here, I think, because it will also add the data from the same day, so the 20 highest values of the month cannot be shown.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question