sparkzilla
New Member
- Joined
- Apr 9, 2019
- Messages
- 3
Hi, I would like to fill values into a column based on the percentages of that value in another column. For example, if the first value is 10 and it has 5% of the total, then if the total number of rows is 100, then the first five will be filled in with the value 10. In the example below I assume that the result column is 100 rows deep, however the script/formula should be able to create proportional results for any number of rows. For example, if the total number of rows is 300, then we would get 15 rows of he first value (10). Thank you for your help.
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
3 | Value | Percentage | Result | |||
4 | 10 | 5% | 10 | |||
5 | 20 | 7% | 10 | |||
6 | 30 | 20% | 10 | |||
7 | 40 | 55% | 10 | |||
8 | 50 | 13% | 10 | |||
9 | 100% | 20 | ||||
10 | 20 | |||||
11 | 20 | |||||
12 | 20 | |||||
13 | 20 | |||||
14 | 20 | |||||
15 | 20 | |||||
16 | 30 | |||||
17 | 30 | |||||
18 | 30 | |||||
19 | and so on | |||||
Sheet1 |