Help with my Dynamic Top 10 Formula

DanielJeff

New Member
Joined
Apr 26, 2023
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Morning

So i'm after a bit of help with a formula i've written =SORT(FILTER(Totals,Totals[Sales]>=LARGE(Totals[Sales],G2)),4,-1).

I'm trying to create a 10 list that changes each time a sales have updated. The above formula works and gives me what I'm after. The formula reads a cell that i can adjust to view the amount users shown. so if i want to see the top 2 i can change a cell to 2, 3 etc. I want it to always display the top 10. But the formula ends up showing everyone when i set it to 10. This is because currently only 7 people have sold stuff, the formula then displays all the people with 0 sales.

I need it so that i can leave the number to display the top 10, but then for the results to display only people who have sold something and not everyone else. SO essentially leaving numbers 8-10 blank until people record a sale


Apologise if its not the best description. I've attached my sheet so you can see where I'm up to.

Thanks
Daniel
 

Attachments

  • Test Sheet.jpeg
    Test Sheet.jpeg
    193.7 KB · Views: 5

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Just in case the image is to small to see.

NameCodeDepartmentSalesTotal RoyaltyTop Sales
Kiana CollinsFP 1Agrii
1.000​
£187.00​
10​
Miles FrederickFP2Agrii
0.000​
£0.00​
Jaycee BestLS 1Agrii
0.000​
£0.00​
Adeline HarringtonLS 2Agrii
0.000​
£0.00​
Mary JamesLS 3Agrii
3.000​
£1,500.00​
Carolina ToddLS 4Agrii
0.000​
£0.00​
Alexa FosterLS 5Agrii
0.000​
£0.00​
Kayden HopkinsLS 6Agrii
10.000​
£0.00​
Gabriela FlemingSB 1Agrii
0.000​
£0.00​
Andrea LarsonSB 2Agrii
2.000​
£230.00​
Rafael ThomasSB 3Agrii
0.000​
£0.00​
Elizabeth MillerSB 4Agrii
0.000​
£0.00​
Russell WardSB 5Agrii
5.000​
£0.00​
Ariana BeilSB 6Agrii
0.000​
£0.00​
Roselyn TurnerSB 7Agrii
6.000​
£0.00​
Roger BishopSB 8Agrii
0.000​
£0.00​
Sydney GalvanSB 9Agrii
0.000​
£0.00​
Kingsley BruceSB 10Agrii
0.000​
£0.00​
Teresa MaynardSB 11Agrii
0.000​
£0.00​
Landry StokesSB 12Agrii
0.000​
£0.00​
Miranda ReillySB 13Agrii
4.000​
£0.00​
Brooklynn MorganSB 14Agrii
0.000​
£0.00​
Harvey MontesSB 15Agrii
0.000​
£0.00​
=SORT(FILTER(Totals,Totals[Sales]>=LARGE(Totals[Sales],G2)),4,-1)
1​
Kayden HopkinsLS 6Agrii
10​
0​
2​
Roselyn TurnerSB 7Agrii
6​
0​
3​
Russell WardSB 5Agrii
5​
0​
4​
Miranda ReillySB 13Agrii
4​
0​
5​
Mary JamesLS 3Agrii
3​
1500​
6​
Andrea LarsonSB 2Agrii
2​
230​
7​
Kiana CollinsFP 1Agrii
1​
187​
8​
Miles FrederickFP2Agrii
0​
0​
9​
Jaycee BestLS 1Agrii
0​
0​
10​
Adeline HarringtonLS 2Agrii
0​
0​
Carolina ToddLS 4Agrii
0​
0​
Alexa FosterLS 5Agrii
0​
0​
Gabriela FlemingSB 1Agrii
0​
0​
Rafael ThomasSB 3Agrii
0​
0​
Elizabeth MillerSB 4Agrii
0​
0​
Ariana BeilSB 6Agrii
0​
0​
Roger BishopSB 8Agrii
0​
0​
Sydney GalvanSB 9Agrii
0​
0​
Kingsley BruceSB 10Agrii
0​
0​
Teresa MaynardSB 11Agrii
0​
0​
Landry StokesSB 12Agrii
0​
0​
Brooklynn MorganSB 14Agrii
0​
0​
Harvey MontesSB 15Agrii
0​
0​
 
Upvote 0
How about
Excel Formula:
=TAKE(SORT(FILTER(Totals,Totals[Sales]>0),4,-1),G2)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Fluff

Could i pick your brain about about another formula issue I'm having. Because my knowledge of more complex formulas is pretty beginner, I tend to look at a bunch of website and piece together bits of what i think will roughly work. Its gets me about 90% of the way, but i often end up with long complicated formulas.
Your formula was a lot cleaner and simpler than the one I had and did exactly what i needed it to.
Would you be able to look at the below and see if there is anything you can recommend. Its pretty much the same as my last question about a top 10 that doesn't include the 0's. But I also need it to read departments. below is an example of what i mean.

Apologies again if its not been explained to good. I've included the formulas i've used for each column in my top 10 under the table

NameCodeDepartmentSalesTotal Royalty
Kiana CollinsFPAgrii
1.000​
£187.00​
Miles FrederickFPWarehouse
2.000​
£0.00​
Jaycee BestFPFront Office
3.000​
£0.00​
Adeline HarringtonFPRemote
0.000​
£0.00​
Mary JamesFPMachine
0.000​
£1,500.00​
Carolina ToddLSAgrii
1.000​
£0.00​
Alexa FosterLSWarehouse
2.000​
£0.00​
Kayden HopkinsLSFront Office
3.000​
£0.00​
Gabriela FlemingLSRemote
0.000​
£0.00​
Andrea LarsonLSMachine
0.000​
£230.00​
Rafael ThomasSBAgrii
0.000​
£0.00​
Elizabeth MillerSBWarehouse
1.000​
£0.00​
Russell WardSBFront Office
2.000​
£0.00​
Ariana BeilSBRemote
3.000​
£0.00​
Roselyn TurnerSBMachine
0.000​
£0.00​
Roger BishopSWAgrii
1.000​
£0.00​
Sydney GalvanSWWarehouse
2.000​
£0.00​
Kingsley BruceSWFront Office
3.000​
£0.00​
Teresa MaynardSWRemote
0.000​
£0.00​
Landry StokesSWMachine
0.000​
£0.00​
Miranda ReillyWWAgrii
1.000​
£0.00​
Brooklynn MorganWWWarehouse
2.000​
£0.00​
Harvey MontesWWFront Office
0.000​
£0.00​
=INDEX($A$2:$A$24,SMALL(IF(($D$2:$D$24=D27)*($B$2:$B$24=$A$31),ROW($D$2:$D$24)-ROW($D$1)),COUNTIF(D27:$D$27,D27)))=FILTER(Totals[Department],Totals[Name]=B27,"")=LARGE(IF($B$2:$B$24=$A$31,$D$2:$D$24),ROW(B27)-ROW(B$26))
Top SalesJaycee BestFront Office
3​
10Miles FrederickWarehouse
2​
Kiana CollinsAgrii
1​
DepartmentAdeline HarringtonRemote
0​
FPMary JamesMachine
0​
 
Upvote 0
As this is a different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,112
Members
453,021
Latest member
Justyna P

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