Combination with repetition

nburaq

Board Regular
Joined
Apr 2, 2021
Messages
220
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Gents,
I need to build a formula for my combination calculation. The formula is,
1645718630664.png

So there are basically two variables which are n and x. Combina formula in excel let me to sum up values of combination from 3 to 5 automatically but I dont know how to do it for power part. I can do it for x=3 and x=4 and x=5 by one by but I thought maybe there is another easy solution ( I know possible with vba do until loop) I have attached the table as well. Thanks for your help!
Reliability_Analysis_Template.xlsx
AB
43Reliability of Redundant System
44n=total number of components5
45x=number of components that need to function for system to work3
46Rc=Reliability of each component0.8
47Rs= Reliability of the system0.2048
Reliability KPIs
Cell Formulas
RangeFormula
B47B47=COMBIN(B44,B45)*POWER(B46,3)*POWER((1-B46),(B44-B45))
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If you have SEQUENCE:

Book1 (version 1).xlsb
ABCD
43Reliability of Redundant System
44n=total number of components5
45x=number of components that need to function for system to work3
46Rc=Reliability of each component0.8Sum
47Rs= Reliability of the system0.20480.94208
Sheet26
Cell Formulas
RangeFormula
B47B47=COMBIN(B44,B45)*POWER(B46,3)*POWER((1-B46),(B44-B45))
D47D47=SUM(COMBIN(B44,SEQUENCE(B44-B45+1,,B45))*B46^SEQUENCE(B44-B45+1,,B45)*(1-B46)^SEQUENCE(B44-B45+1,,B44-B45,-1))


Excel has a function named SERIESSUM that sums up power series, but only with fixed coefficients. Your formula is basically a subsection of the binomial series. I think it's possible that Excel has a built-in formula to do that, probably in the Statistical functions. I'll see if I can find it.
 
Upvote 0
Found it:

Book1 (version 1).xlsb
ABCD
43Reliability of Redundant System
44n=total number of components5
45x=number of components that need to function for system to work3
46Rc=Reliability of each component0.8Sum
47Rs= Reliability of the system0.20480.94208
48
490.20480.94208
Sheet26
Cell Formulas
RangeFormula
B47B47=COMBIN(B44,B45)*POWER(B46,3)*POWER((1-B46),(B44-B45))
D47D47=SUM(COMBIN(B44,SEQUENCE(B44-B45+1,,B45))*B46^SEQUENCE(B44-B45+1,,B45)*(1-B46)^SEQUENCE(B44-B45+1,,B44-B45,-1))
B49B49=BINOM.DIST(3,5,B46,FALSE)
D49D49=BINOM.DIST(B44,B44,B46,TRUE)-BINOM.DIST(B44-B45,B44,B46,TRUE)
 
Upvote 0
Even better for the D49 formula:

Excel Formula:
=1-BINOM.DIST(B44-B45,B44,B46,TRUE)
 
Upvote 0
Solution
Found it:

Book1 (version 1).xlsb
ABCD
43Reliability of Redundant System
44n=total number of components5
45x=number of components that need to function for system to work3
46Rc=Reliability of each component0.8Sum
47Rs= Reliability of the system0.20480.94208
48
490.20480.94208
Sheet26
Cell Formulas
RangeFormula
B47B47=COMBIN(B44,B45)*POWER(B46,3)*POWER((1-B46),(B44-B45))
D47D47=SUM(COMBIN(B44,SEQUENCE(B44-B45+1,,B45))*B46^SEQUENCE(B44-B45+1,,B45)*(1-B46)^SEQUENCE(B44-B45+1,,B44-B45,-1))
B49B49=BINOM.DIST(3,5,B46,FALSE)
D49D49=BINOM.DIST(B44,B44,B46,TRUE)-BINOM.DIST(B44-B45,B44,B46,TRUE)
Hi,
This is great! Thanks for the solutions however I got #NAME? error for the formula D47 what could be the reason?
 
Upvote 0
The SEQUENCE function is available in Excel 365, but not Excel 2019. If you're using Excel 2019, the #NAME? error is just saying it doesn't recognize SEQUENCE. It's a bit irrelevant in this case anyway, the formula in post #4 is much cleaner anyway.
 
Upvote 0
The SEQUENCE function is available in Excel 365, but not Excel 2019. If you're using Excel 2019, the #NAME? error is just saying it doesn't recognize SEQUENCE. It's a bit irrelevant in this case anyway, the formula in post #4 is much cleaner anyway.
Thanks a lot yes solution in post 4 works perfectly!
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,399
Members
448,958
Latest member
Hat4Life

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