Finding top 10 values in a specific months data within a range of months

CarlBH

New Member
Joined
Mar 16, 2018
Messages
4
I run reports for ticket analysis in Excel using exports from a case management system (very limited report functionality in an old system).
I build up a set of data, each week/month adding the latest resolved/new cases within the period.
From that I create a worksheet using CountIFS to produce a table that shows me the number of cases by case type in each month over the last 2 years for trending purposes.

What I want to find a way to do is to extract the top 10 values and their associated case types (bearing in mind there will be duplicate values) in a given months data. The complexity is I want the month/week in question to be based on the month/week for "today" that is set elsewhere in the report. So that when I set the "report month" date elsewhere in the report, the output table below autopopulates bith the service and the value from the source data.
Something similar to a combination of HLOOKUP against the month or week and a LARGE function. But instead of looking for a specific Row every time within the HLOOKUP, it is looking up the LARGE Top 10 values and the Services associated with that value.

OUTPUT Required
ESS757
LOG ON547
LAPTOP439
Citrix338
SAP PRODUCTION337
MICROSOFT OUTLOOK269
OFFICE 365251
PRINTING242
NETWORK DRIVES213
Case System148

<tbody>
</tbody><colgroup><col><col></colgroup>


The table to search from in a worksheet called "Resolve type data" looks like the below, but with a lot more service names.
Service nameJan-17Feb-17Mar-17Apr-17May-17Jun-17Jul-17Aug-17Sep-17Oct-17Nov-17Dec-17Jan-18
ESS986910730685749746695723797727652479757
LOG ON760802746511509434478402351420354418547
LAPTOP259310336301378427434369425442468305439
Citrix000023263303390305371400233338
SAP PRODUCTION350292302237318280279274288273365214337
MICROSOFT OUTLOOK505452453466924485535568475453461215269
OFFICE 3652333115108148124131190225347290165251
PRINTING260242256186233200209242286220221221242
NETWORK DRIVES151144174123179129152193161206181111213
Case System000007185189111145151144148
OFFICE 365 PRO PLUS0000045357428224751010671
INTERNET1962352161701961201011149762734465
VIRUS711354402238831361311633165
PC15213534668562766555684663
WIRELESS599010958797954727760724463
JUNOS PULSE80868566678467676350636861
TELEPHONY (LANDLINE/DESKPHONE)89394236628057707469793447

<tbody>
</tbody><colgroup><col><col span="13"></colgroup>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Of course if you already have the underlying data with a service name column and date column then you can just pivot/filter/group by month/subtotal without unpivoting anything.
 
Upvote 0
Unfortunately although it initially gives me what I need, when I add more data to the source for the next month for example it doesn't refresh through.
The first consolidated table updates when I click on refresh all to show the new total value. However this doesn't carry through to the 2nd pivot created when I double clicked on the data originally.

e.g. If I add the ticket data for Feb and March to date, the consolidated table count goes up to reflect the new total ticket count, but this is not reflected in the next two tables created when I followed the youtube guide.
I am looking to create something that I can load the new data each month, select a pivottable refresh all once and the whole workbook updates automatically for the new months data.
 
Upvote 0
The issue is I use the same underlying data for multiple information representations, month by month trend, distribution overall by service, and the current month top 10.
 
Upvote 0
Can you start with just the service name and date? Or does your system only give you the 2D table as you've shown above?
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,183
Members
449,071
Latest member
cdnMech

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