Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Find Top 5 Values With the Highest Sums

I have two columns. Column A has names and Column B has dollar amounts.

I am looking to find the combined sum of each value in Column A and display the top 5 results.

I have tried multiple query formulas to no avail. I have looked through Stack Overflow but have not found an example that matches my problem.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Screenshot example is included below.

[![Screenshot](https://i.stack.imgur.com/PLHX0.png)](https://i.stack.imgur.com/PLHX0.png)

>Solution :

you can also try:

SORTN(BYROW(UNIQUE(A:A),LAMBDA(z,{z,SUMIF(A:A,z,B:B)})),5,,2,0)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading