Smock Yaba
New Member
In cells A1:C1 I have the numbers 8, 3, and 5. In cell D1 I would like to automatically sum the number of combinations like so:
=COMBIN($A1,3)+COMBIN($A1,4)+COMBIN($A1,5)
If C1 was 6 instead of 5, then I would want:
=COMBIN($A1,3)+COMBIN($A1,4)+COMBIN($A1,5)+COMBIN($A1,6)
If C1 was instead 1, then I would want:
=COMBIN($A1,3)+COMBIN($A1,2)+COMBIN($A1,1)
So in other words, I'd like B1 to be the target number of samples that C1 heads towards in the D1 formula.
=COMBIN($A1,3)+COMBIN($A1,4)+COMBIN($A1,5)
If C1 was 6 instead of 5, then I would want:
=COMBIN($A1,3)+COMBIN($A1,4)+COMBIN($A1,5)+COMBIN($A1,6)
If C1 was instead 1, then I would want:
=COMBIN($A1,3)+COMBIN($A1,2)+COMBIN($A1,1)
So in other words, I'd like B1 to be the target number of samples that C1 heads towards in the D1 formula.