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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,336
Messages
6,124,331
Members
449,155
Latest member
ravioli44

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