How to display possible n combinations totaling x?

tbv202

New Member
Joined
Feb 23, 2014
Messages
1
I was hoping to find a thread on this somewhere, but after a few hours of looking around without success, I decided to just post it here and hoping someone can help me out.

I'm trying to display the total number of possible scenarios for my fantasy baseball auction draft. Here are the details:

Players needed: 17
Budget: $205
Player's Value Range: $1 - $40 (no fractional units)

So I've been doing this manually, and I'm sure there has to be a simpler (automated) method to do this.

Here's an example of the output I'm looking to compute:

Scenario 1
$40$0
$39$0
$38$0
$37$0
$36$0
$351$35
$34$0
$33$0
$32$0
$31$0
$301$30
$29$0
$28$0
$27$0
$261$26
$25$0
$24$0
$23$0
$221$22
$21$0
$202$40
$19$0
$18$0
$17$0
$161$16
$15$0
$14$0
$13$0
$12$0
$11$0
$10$0
$91$9
$82$16
$7$0
$6$0
$5$0
$4$0
$31$3
$22$4
$14$4
Total17 $205

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>
Any help on this would be much appreciated!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,215,771
Messages
6,126,799
Members
449,337
Latest member
BBV123

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