Dynamic Statisics

TheRogue!

Board Regular
Joined
Mar 2, 2012
Messages
84
Office Version
  1. 2021
Platform
  1. Windows
I have a table that shows the probability of what type of toy a child might have, based upon gender.

I have a seperate input sheet where a user can input the # of boys & the # of girls in the sampling.

I can get it to do all of the calculations & generate the random #'s for the probabilty & get it to populate the results to another table, in order to calculate a total inventory (i.e. -5 trucks & 3 dolls), but I'm stuck on how to make the second table dynamic to account for whatever # of boys & girls the user inputs on the 1st sheet.

Column1
Trucks
Dolls
Boats
Balls
Stuffed
Boys
75%
5%
60%
50%
10%
Girls
0%
90%
5%
50%
70%

<TBODY>
</TBODY>

How do I get the second table to look like this:
(I'm having trouble with how I get it to populate Column1[Dynamically, based upon Input on the other sheet (might be 100 boys & 300 girls)], the rest of the table, I can handle.

Column1
Trucks
Dolls
Boats
Balls
Stuffed
Boy1
1
1
1
1
Boy2
1
1
Boy3
1
1
Boy4
1
1
1
Girl1
1
1
1
Girl2
1
1
Girl3
1
1

<TBODY>
</TBODY>
 
Last edited:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Very simple. Just two direct input boxes for the two variables. Otherwise, there is just some text, explaining to the user how it works. The variable boxes Default to zero, but any intiger can be input.

x Boys
x Girls

<COLGROUP><COL style="WIDTH: 48pt" span=2 width=64><TBODY>
</TBODY>
 
Upvote 0

Forum statistics

Threads
1,215,334
Messages
6,124,319
Members
449,153
Latest member
JazzSingerNL

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