Microsoft Excel

Marko77

Q-School Graduate
Joined
Aug 16, 2006
Messages
951
Location
Perthshire
Visit site
Hi,

Any Excel guru's lend me a quick formula?

Say I have a column of 60 numbers but I want to put in a formula at the bottom to total the 30 largest numbers within that 60 - how could I do this.

Much obliged to anyone who can advise. I'm sure I've seen the formula before but I can't remember how it goes.


Cheers
 

fundy

Ryder Cup Winner
Joined
Aug 6, 2010
Messages
27,053
Location
Herts/Beds border
Visit site
=SUM(IF(COUNT(A1:A60)<30,A1:A60,LARGE(A1:A60,{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30})))


that should do the trick though may be shorter ways to do it (or do via a pivot table)
 

chrisd

Major Champion
Joined
Sep 22, 2009
Messages
24,966
Location
Kent
Visit site
=SUM(IF(COUNT(A1:A60)<30,A1:A60,LARGE(A1:A60,{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30})))


that should do the trick though may be shorter ways to do it (or do via a pivot table)


Couldn't have put it better myself ..... in fact I couldn't have said myself! Always nice to find a boffin when you need one



Chris
 

Leftie

Tour Winner
Joined
Dec 9, 2007
Messages
4,390
Location
19th hole
Visit site
Far too complicated for an old f*rt like me.

I would just have sorted the list - highest to lowest and then just do a sum of rows 1 - 30.

Heck, what do I know? It's 5 years since I used a spreadsheet.
 

Marko77

Q-School Graduate
Joined
Aug 16, 2006
Messages
951
Location
Perthshire
Visit site
Cheers also Alan, will keep a note of that in my formula's list.

Leftie - I was so focused on trying to figure out the formula simple logic defied me - Good logical thinking there, I may have got there had there not been such a quick response here...
 
Top