I am trying to create a formula to get the sum of the N smallest items in a list of data that is larger than N. I can achieve the desired result by hardcoding the array. For example, if N=6:
=SUM(SMALL(A10:Z10,{1,2,3,4,5,6}))
will give me the sum of the six smallest values in the range.
Problem is that, as more of the range gets populated over time, I need to pull more than just the six smallest items.
Logically, I thought something like this would work:
=SUM(SMALL(A10:Z10,{1:6}))
but it does not.
How can I alter the formula to employ a variable for the number of items to sum?
Thanks,
Dave
=SUM(SMALL(A10:Z10,{1,2,3,4,5,6}))
will give me the sum of the six smallest values in the range.
Problem is that, as more of the range gets populated over time, I need to pull more than just the six smallest items.
Logically, I thought something like this would work:
=SUM(SMALL(A10:Z10,{1:6}))
but it does not.
How can I alter the formula to employ a variable for the number of items to sum?
Thanks,
Dave