0

how to find a sum of 3 higher values from the range of 6 which are on the one row e.g We have integer values A1:A6 like 2 5 7 4 9 9 It should sum 9+9+7 so 25 Is it possible by any formula or something?

Robert W
  • 11
  • 1

3 Answers3

2

Take a look at the answer Extracting the top five maximum unique values

That should provide you with a basic mechanism (QUERY), to get the top 3 values. Then, apply the SUM function to that result.

So, in your case, you would want: =SUM(QUERY(A2:A6,"select A order by A desc limit 3",-1))

jhenderson2099
  • 956
  • 8
  • 17
2

Here's another one:

 =SUM(ARRAY_CONSTRAIN( SORT(A1:A6,1,0),3,1))
TheMaster
  • 45,448
  • 6
  • 62
  • 85
1

Shorter version:

=large(A:A,1)+large(A:A,2)+large(A:A,3)

to apply to an entire column, though A:A could be limited to A1:A6.

pnuts
  • 58,317
  • 11
  • 87
  • 139