bartmaster
New Member
- Joined
- Jan 30, 2019
- Messages
- 21
- Office Version
- 365
- 2016
- Platform
- Windows
Hello,
Please see below table:
Column C contains a list of distinct values from column A with their percentage distribution in column D.
Easy enough!
The question is how can we revert the process to get a list of pre-defined valuesfrom column C into column G (starting from row 4).
I would want to have them in random order but keeping the set distribution percentage?
Additionally a variable in the cell G1 would tell how many rows we would like to fill, i.e. currently column A has 20 values but in column F we would like to get a list of 65 values.
Any ideas?
Many thanks
Please see below table:
Book2 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Values | Value | Occurrence | New count of values: | 65 | ||||
2 | BBB | AAA | 10% | ||||||
3 | AAA | AAB | 5% | Values: | |||||
4 | AAB | ABA | 15% | ||||||
5 | ABA | ABB | 15% | ||||||
6 | AAA | BAA | 15% | ||||||
7 | ABB | BAB | 15% | ||||||
8 | BAB | BBA | 15% | ||||||
9 | BBA | BBB | 10% | ||||||
10 | BBB | ||||||||
11 | ABA | ||||||||
12 | BAB | ||||||||
13 | BAA | ||||||||
14 | BBA | ||||||||
15 | ABB | ||||||||
16 | BAA | ||||||||
17 | BBA | ||||||||
18 | ABA | ||||||||
19 | ABB | ||||||||
20 | BAB | ||||||||
21 | BAA | ||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D9 | D2 | =COUNTIF($A$2:$A$21,C2)/20 |
Column C contains a list of distinct values from column A with their percentage distribution in column D.
Easy enough!
The question is how can we revert the process to get a list of pre-defined valuesfrom column C into column G (starting from row 4).
I would want to have them in random order but keeping the set distribution percentage?
Additionally a variable in the cell G1 would tell how many rows we would like to fill, i.e. currently column A has 20 values but in column F we would like to get a list of 65 values.
Any ideas?
Many thanks