Finding largest total of ANY two values in a data set
On Thu, 12 Jul 2012 12:03:06 +0000, H3dgehog wrote:
Good morning,
I have a list of percentage values in a column (totalling 100%). I have
to run 3 specific tests against this data set:
1) Find the highest sum total of ANY two values, returning the total and
the two values that make up the total.
2) Find the highest sum total of ANY three values, returning the total
and the three values that make up the total.
3) Find the highest sum total of ANY four values, returning the total
and the four values that make up the total.
Is there a specific function to look at data sets in this way?
Many thanks in advance from a first time poster!
If I understand your question properly, I believe the "highest sum total" of ANY n values, would be the same as the sum of the n highest values.
=sum(large(data_range,{1,2, ... n})) would be a general solution
Two Highest:
=sum(large(data_range,{1,2}))
Three highest:
=sum(large(data_range,{1,2,3}))
and so forth.
|