"Top 10" Text Entries in a Column vs Date

Schnagglebeef

New Member
Joined
May 3, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Good morning,

I have built a basic dashboard to help with my Workforce Efficiency reporting.

On the raw data spreadsheet there is Column "G" which lists the names of an employee who has picked up an additional shift. There is also a date when they picked up this shift in Column "D".

Is there a way to capture a "top 10" on my dashboard from this column which lists the employees where their name appears most frequently in a given month?

Thank you,

Paul
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Since you are on Office 365, you can invoke some of the newer functions (LET, UNIQUE, FILTER, TAKE, SORT, and HSTACK) to achieve this:

This assumes:
1) your data in columns D & G runs from rows 2:100
2) J2 has the first day of the given month (or selected timeframe)
3) J3 has the last day of the given month (or selected timeframe)

Code:
=LET(x,UNIQUE(INDEX(FILTER($D$2:$G$100,($D$2:$D$100<=$J$3)*($D$2:$D$100>=$J$2)),0,4)),TAKE(SORT(HSTACK(x,COUNTIFS($D$2:$D$100,"<="&J3,$D$2:$D$100,">="&$J$2,$G$2:$G$100,x)),2,-1),10))
 
Upvote 0
Since you are on Office 365, you can invoke some of the newer functions (LET, UNIQUE, FILTER, TAKE, SORT, and HSTACK) to achieve this:

This assumes:
1) your data in columns D & G runs from rows 2:100
2) J2 has the first day of the given month (or selected timeframe)
3) J3 has the last day of the given month (or selected timeframe)

Code:
=LET(x,UNIQUE(INDEX(FILTER($D$2:$G$100,($D$2:$D$100<=$J$3)*($D$2:$D$100>=$J$2)),0,4)),TAKE(SORT(HSTACK(x,COUNTIFS($D$2:$D$100,"<="&J3,$D$2:$D$100,">="&$J$2,$G$2:$G$100,x)),2,-1),10))

Hello,

Thank you for the suggestion - when I use the formula it displays as 0. Is there anything else I need to manually adjust?
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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