Add top numbers

  • Thread starter Thread starter Frustrated
  • Start date Start date
F

Frustrated

How do you add the top 20 numbers from a list of 500 numbers in a row?
 
=SUMPRODUCT(--(RANK(list_of_values,list_of_values,0)<=20),list_of_values)
 
This formula will break if the 20th largest value has duplicates.
Try instead:
=SUMIF(List,">"&LARGE(List,LgList),List)+(LgList-COUNTIF(List,">"&LARGE(List,LgList)))*LARGE(List,LgList)

where List is the range of numbers, and LgList is, in this case, 20.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top