group by months

Posted on 2014-12-17
Medium Priority
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.
Question by:Svgmassive
  • 2
LVL 50

Accepted Solution

Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 2000 total points
ID: 40506294

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


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

cheers, teylyn
LVL 25

Expert Comment

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

LVL 50
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.

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

621 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