EXCEL RANDBETWEEN FUNCTION

This function generates a random integer between two input values. 

Syntax:

=RANDBETWEEN (bottom, top)

Parameter list:

  • bottom – an integer that represents the range’s lower value.
  • top – an integer that represents the range’s lowest value.

Step By Step Guide of RANDBETWEEN Function

For example, the number 38 may be generated using =RANDBETWEEN(1,50). Each time the worksheet is calculated, RANDBETWEEN generates a new value.

Copy the cells that contain RANDBETWEEN and paste them as values using paste special to prevent random numbers from being changed. Select the cells, input the RANDBETWEEN function, then press Control + Enter to produce a set of random integers in several cells.

Enter RANDBETWEEN in the formulae bar to generate a random number that doesn’t change while the worksheet is computed, then press F9 to transform the formula into its result.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now