# How to use the RANDBETWEEN Function in Excel

## RANDBETWEEN Function in Excel found in Math & Trig category. It is used to generate a random number from lower to largest value.

The Excel RANDBETWEEN function is very popular function which is located in Math & Trig category. Microsoft Excel RANDBETWEEN function is used to returns a random number between the number you specify. This function returns a random number which is between a bottom and top range. The RANDBETWEEN function in Excel returns a unique random number every time when your spreadsheet recalculates with the help of F9 key.

The RANDBETWEEN function is important built-in function in Excel. The RANDBETWEEN function in Excel is found in Math and Trig category. You can use this function as a worksheet function in active worksheet. RANDBETWEEN function recalculates random number when you opened any worksheet or making any changes in active worksheet. This function is used to generate a random number from lower to largest value. This number is recalculate when you have to do any kind of changes in active worksheet.

Syntax of RANDBETWEEN

RANDBETWEEN (bottom, top)

Bottom – It is required integer number which representing the lower value of the range.
Top – This is another required integer which representing the largest value of the range.

## How to use the RANDBETWEEN Function in Excel

If you want to get a random integer number between 10 to 27 in that situation you have to use RANDBETWEEN function in Excel. You have to take few given simple steps to get the result in active worksheet. Step 1: Open an existing worksheet or create a new worksheet in which you want to use RANDBETWEEN Function.

Step 2: Type the following function in Cell A2 =RANDBETWEEN(10,27) and press enter. Now drag this function with the help of Fill Handle button as per your need.

You can drag this function either top to bottom or left to right as per your requirement.

Must Read: How to sort data based on color in Excel

Step 3: After getting the list of random number you can also apply Conditional Formatting on selected range of cell. Conditional Formatting give attractive look of your random number list.

If you want to refresh this list then you have to Press F9 Function key. After pressing this key all random numbers recalculate. I hope this guide helps you to easily learn how to use RANDBETWEEN function. If you have any suggestion or doubt then let me know by sharing your query in comment box.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8474653,"math_prob":0.89326257,"size":2417,"snap":"2021-21-2021-25","text_gpt3_token_len":529,"char_repetition_ratio":0.18151678,"word_repetition_ratio":0.004889976,"special_character_ratio":0.19321473,"punctuation_ratio":0.07191011,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9813328,"pos_list":[0,1,2],"im_url_duplicate_count":[null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-06-20T18:27:42Z\",\"WARC-Record-ID\":\"<urn:uuid:2c2aac8c-60ef-4c57-b3d0-310a9dfd9a92>\",\"Content-Length\":\"29723\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3f0512ac-0ea4-4a79-a9f6-4e4557a2c8a6>\",\"WARC-Concurrent-To\":\"<urn:uuid:81ac662b-7997-4506-8375-51683396ca04>\",\"WARC-IP-Address\":\"172.67.170.173\",\"WARC-Target-URI\":\"https://www.skyneel.com/randbetween-function-in-excel\",\"WARC-Payload-Digest\":\"sha1:AGULZSP4MQ5J4J37VOW4F4U4G5RRZNLF\",\"WARC-Block-Digest\":\"sha1:WKAAR4KPH5BPNMJUVT7424PDICIJJB4H\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-25/CC-MAIN-2021-25_segments_1623488253106.51_warc_CC-MAIN-20210620175043-20210620205043-00374.warc.gz\"}"}