So the total of 6 dice rolls must be the value in a certain cell (B2 in my exemple). Can it refreshes until it mets the requirements? Or some other function that I don't know about?
I will link what I'm using but not knowing much I don't really understand the functions themselves, I copied them somewhere and worked with it. A way to refresh until a value appears
in a cell would fix this issue. Otherwise I tried to make is as clear as possible.
B2: 21 (Total)
C2:1 (Min value)
D2:6 (Max value)
E2:6 (Number of cells)
A4:=RANDBETWEEN(MAX($C$2,$B$2-(($E$2-ROWS($B$4:$B4))*$D$2)),MIN($D$2,$B$2-(($E$2-ROWS($B$4:$B4))*$C$2)))
A5:=IF(ROW()=$E$2+3,$B$2-SUM($B$4:$B4),IF(ROW()>$E$2+3,"",RANDBETWEEN(MAX($C$2,$B$2-(SUM($B$4:$B4)+($E$2-ROWS($B$4:$B5))*$D$2)),MIN($D$2,$B$2-(SUM($B$4:$B4)+($E$2-ROWS($B$4:$B5))*$C$2)))))
A6: drag down until there is equal to E2 (Number of cells) in a row. SO 4 more below this one.
My problem is to force one of those value to be 6. It works by himself but I tried with replacing a value with 6 and it works up until the bottom where with a forced 6 the value goes above B2 (Total) and results in an error.
I created a tickbox to refresh the page and eventually there is a value that works. If there was a way to make it auto-refresh until there is a value in said boxes that would be awesome.
Thank you!
Bookmarks