Forum Discussion
Creating a formula to autofill a range of cells based on input
Hi, i stumbled upon this and found solution...
For example
| A | B | C |
| 1 | Fund | 100 (user input) |
| 2 | Splitter | 10 (user input) |
| 3 | ||
4 | ||
| 5 | formula * | formula ** |
* =sequence(c2,1)
** =if(b5="","",if(b6="",#,##))
# =$c$1-sum($c$3:c4)
## =$c$3/$c$4+randbetween(-5,5)/100*($c$1/$c$2)
Legends,
YOU WILL HAVE TO COPY THE ## FORMULA MANUALLY (for ex, copy from c5 to c200)
* will create sequence based on c2 input in rows, and 1 in columns
** will identify, if the cell left to it, b5, is blank, it will be blank, but if not blank (still in the sequence), it will give formula. Formula # if b6 is blank, meaning b5 is the LAST sequence. Formula ## if b6 is not blank, meaning b5 is still in the MID of sequence
# I have to make row 3 and 4 blank to manipulate formula to count for last cell, total fund, minus the sum of all the divider before this last cell
## formula to randomize the amount of fund splitted equally, but given -5 and 5 percent (per100) deviation