sum of six highest value within a range

melnexcel

Board Regular
Joined
Feb 19, 2007
Messages
54
I have following values in cells:
S4: 846
T4: 846
U4: 846
V4: 893
W4:893
X4: 893
Y4: 893
Z4: 0
AA4: 0
AB4: 0
AC4: 0
AD4: 0

I need to sum the six highest value within those cells. I expect to get a sum of 5264, but does not know how to create a formula for this. I tried using SUMPRODUCT function but this always return an error in Excel 2010.

Thank you very much for any help.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
No need to use SUMPRODUCT in this case. The following normally-entered formula is sufficient:

=SUM(LARGE(S4:AD4,{1,2,3,4,5,6}))

Because of the array constant {1,...,6}, Excel is able to recognize that as an array formula without the need to array-enter the SUM formula (press ctrl+shift+Enter) or to use SUMPRODUCT.
 
Upvote 0
Whenever I try to write the formula: =SUM(LARGE(S4:AD4,{1,2,3,4,5,6}))
Excel always says: The formula you typed contains an error and "AD4" is highlighted. Don't know what is wrong with it. I am using Excel 2010 if it may help.

The same is true if I use the formula: =SUMPRODUCT(LARGE(S4:AD4,{1,2,3,4,5,6}))
 
Upvote 0
Excel always says: The formula you typed contains an error and "AD4" is highlighted.

Hi, your system probably uses a comma as the decimal separator, in which case you need to replace them in the formula with semi-colons, i.e.

=SUM(LARGE(S4:AD4;{1;2;3;4;5;6}))

Note, this assumes you will always have at least 6 values in the range to sum.
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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