Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RANDBETWEEN(1,11) but not 6?

I'm trying to use RANDBETWEEN(1,11) but omit 6 and then drag it down. I don't know how to keep excel from including 6 as a random result?

like image 465
BenjaminFranklin Avatar asked Mar 19 '14 12:03

BenjaminFranklin


People also ask

What will the Randbetween 1 10 formula return if you insert it in a cell?

Returns a random integer number between the numbers you specify. A new random integer number is returned every time the worksheet is calculated.

How do I fix numbers in Randbetween?

RANDBETWEEN returns a new random value each time the worksheet is recalculated, including changes made to unrelated cells in the same workbook. To stop random numbers from changing, copy the cells that contain RANDBETWEEN to the clipboard, then use Paste Special > Values to convert to text.


2 Answers

maybe something like this:

=CHOOSE(RANDBETWEEN(1,2),RANDBETWEEN(1,5),RANDBETWEEN(7,11))
like image 165
Dmitry Pavliv Avatar answered Sep 23 '22 19:09

Dmitry Pavliv


Try,

=choose(randbetween(1,10),1,2,3,4,5,7,8,9,10,11)

As you can see 6 is not included in the list of random numbers.

like image 24
YungKing Avatar answered Sep 24 '22 19:09

YungKing