Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Maximum Numbers from a series of Columns

Hi,

I have to add up the highest 5 numbers from a series of 8 columns.
Some rows will have 5 different numbers, some 6, some 7 or 8. Is there
a way to find the 5 highest from that series, and then have another
equation to add them up?

Thanks,

Mark

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Maximum Numbers from a series of Columns

With
A1:H8 containing randomly dispersed numbers and blanks

This formula returns the sum of the 5 highest numbers in that range
=SUM(LARGE(A1:H8,{1,2,3,4,5}))

Note: if there may be less than 5 numbers overall let us know so we can trap
that (with a more complicated formula).

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

Hi,

I have to add up the highest 5 numbers from a series of 8 columns.
Some rows will have 5 different numbers, some 6, some 7 or 8. Is there
a way to find the 5 highest from that series, and then have another
equation to add them up?

Thanks,

Mark


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Maximum Numbers from a series of Columns

That's awesome. Except you are correct, in that I will need to be able
to work the formula on rows that have less than 5 entries. OTherwise,
I receive a #NUM! error message if there are more than 3 blank
columns. But that's a GREAT start.

And looking to the future, I will actually need to do this for a
series of 10 or 11 columns, not the 8 that I specified in the first
message. I'm not sure that makes a difference, though.

Mark

On Feb 20, 5:49 pm, Ron Coderre
wrote:
With
A1:H8 containing randomly dispersed numbers and blanks

This formula returns the sum of the 5 highest numbers in that range
=SUM(LARGE(A1:H8,{1,2,3,4,5}))

Note: if there may be less than 5 numbers overall let us know so we can trap
that (with a more complicated formula).

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP

" wrote:
Hi,


I have to add up the highest 5 numbers from a series of 8 columns.
Some rows will have 5 different numbers, some 6, some 7 or 8. Is there
a way to find the 5 highest from that series, and then have another
equation to add them up?


Thanks,


Mark



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Maximum Numbers from a series of Columns

Ok....so you need to sum the 5 largest numbers in a single row.
AND....there may be less than 5 numbers.

With number and/or blanks in A1:H1

Try something like this:
I1:
=IF(COUNT(A1:H1),SUMPRODUCT(LARGE(A1:H1,ROW($A$1:I NDEX(A:A,MIN(5,COUNT(A1:H1)))))),"no numbers")

Does that help?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

That's awesome. Except you are correct, in that I will need to be able
to work the formula on rows that have less than 5 entries. OTherwise,
I receive a #NUM! error message if there are more than 3 blank
columns. But that's a GREAT start.

And looking to the future, I will actually need to do this for a
series of 10 or 11 columns, not the 8 that I specified in the first
message. I'm not sure that makes a difference, though.

Mark

On Feb 20, 5:49 pm, Ron Coderre
wrote:
With
A1:H8 containing randomly dispersed numbers and blanks

This formula returns the sum of the 5 highest numbers in that range
=SUM(LARGE(A1:H8,{1,2,3,4,5}))

Note: if there may be less than 5 numbers overall let us know so we can trap
that (with a more complicated formula).

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP

" wrote:
Hi,


I have to add up the highest 5 numbers from a series of 8 columns.
Some rows will have 5 different numbers, some 6, some 7 or 8. Is there
a way to find the 5 highest from that series, and then have another
equation to add them up?


Thanks,


Mark




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Maximum Numbers from a series of Columns

Once again, that's amazing to me. I couldn't figure all that out if
you gave me 5 years and a manual. Thanks very much, it works fine. I
just have to figure out how to adjust when/if I add any additional
columns or rows to the sheet. When I do, it doesn't work, but I can
work on that and figure it out.

Thanks again!!!

Mark

On Feb 20, 6:29 pm, Ron Coderre
wrote:
Ok....so you need to sum the 5 largest numbers in a single row.
AND....there may be less than 5 numbers.

With number and/or blanks in A1:H1

Try something like this:
I1:
=IF(COUNT(A1:H1),SUMPRODUCT(LARGE(A1:H1,ROW($A$1:I NDEX(A:A,MIN(5,COUNT(A1:H1)))))),"no numbers")

Does that help?
***********
Regards,
Ron

XL2002, WinXP

" wrote:
That's awesome. Except you are correct, in that I will need to be able
to work the formula on rows that have less than 5 entries. OTherwise,
I receive a #NUM! error message if there are more than 3 blank
columns. But that's a GREAT start.


And looking to the future, I will actually need to do this for a
series of 10 or 11 columns, not the 8 that I specified in the first
message. I'm not sure that makes a difference, though.


Mark


On Feb 20, 5:49 pm, Ron Coderre
wrote:
With
A1:H8 containing randomly dispersed numbers and blanks


This formula returns the sum of the 5 highest numbers in that range
=SUM(LARGE(A1:H8,{1,2,3,4,5}))


Note: if there may be less than 5 numbers overall let us know so we can trap
that (with a more complicated formula).


Is that something you can work with?
***********
Regards,
Ron


XL2002, WinXP


" wrote:
Hi,


I have to add up the highest 5 numbers from a series of 8 columns.
Some rows will have 5 different numbers, some 6, some 7 or 8. Is there
a way to find the 5 highest from that series, and then have another
equation to add them up?


Thanks,


Mark



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel chart maximum series should more than 255 series kameking Charts and Charting in Excel 5 August 22nd 10 10:52 AM
Maximum Value of a Cell over a series of calculations Kypp Excel Discussion (Misc queries) 2 August 31st 06 08:24 PM
Extending the Maximum no. of Columns Lil Setting up and Configuration of Excel 1 May 1st 06 03:42 PM
How can I extend the maximum # of columns to 500 Me Setting up and Configuration of Excel 3 January 13th 05 11:04 PM
How can I extend the maximum # of columns to 500 Me Setting up and Configuration of Excel 0 January 11th 05 09:37 PM


All times are GMT +1. The time now is 09:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"