Forum Discussion

ddrap14's avatar
ddrap14
Copper Contributor
Oct 23, 2022
Solved

Is there any way to apply random values to cells within Excel?

Hi all, I have a spreadsheet that simulates sports leagues using an external random number generator. The sheet looks like https://imgur.com/a/D9CtuYB but is much larger in scope. As a result of th...
  • SnowMan55's avatar
    SnowMan55
    Oct 23, 2022

    ddrap14 

    So at the start of a year, you want numbers that are a combination of user-entered values and random adjustments.  With that clarification, it seems that you should use one column for the values you enter, and a separate column for the "tweaked" values (i.e., the values after the random adjustments).  So putting the former into column B and the latter into column C, copy this formula from cell C2 down:

    =IF( $A$1="TWEAK", B2 + ROUND(10*RAND()-5, 1), C2 )

    and use the special word "TWEAK" instead of "RESET".

     

Resources