Forum Discussion

Sydwizz's avatar
Sydwizz
Copper Contributor
Oct 05, 2019
Solved

IFS function with multiple conditions per value

HELP! My assignment is to simulate a dice roll with 1000 trials, using the random number generator =RAND() and assigning those values to each side of the die. To make things short and sweet I would'v...
  • Sydwizz 

    How about this?

     

    =IF(B4<0.16,1,IF(AND( B4>0.16, B4<0.33),2,IF(AND(B4>0.33, B4<0.5),3,IF(AND(B4>0.5, B4<0.66),4,IF(AND(B4>0.66, B4<0.83),5,IF(B4>0.83,6,1))))))

    Or you may also try this...

    =CHOOSE(MATCH(B4,{0,0.16,0.33,0.5,0.66,0.83}),1,2,3,4,5,6)

     

Resources