{"id":998,"date":"2014-10-31T14:19:06","date_gmt":"2014-10-31T13:19:06","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=998"},"modified":"2023-11-30T20:17:51","modified_gmt":"2023-11-30T19:17:51","slug":"randbetween-function","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/randbetween-function\/","title":{"rendered":"RANDBETWEEN Function"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><em><strong>What does it do? <\/strong><\/em><\/p>\n<p>Returns a random integer number between the numbers you specify.<\/p>\n<p><em><strong>Formula breakdown: <\/strong><\/em><\/p>\n<p>=RANDBETWEEN(<span style=\"color: #0000ff;\">bottom number<\/span>, <span style=\"color: #ff6600;\">top number<\/span>)<\/p>\n<p><em><strong>What it means: <\/strong><\/em><\/p>\n<p>=RANDBETWEEN(<span style=\"color: #0000ff;\">10<\/span>, <span style=\"color: #ff6600;\">10000<\/span>)<\/p>\n<hr \/>\n<p>I use the <strong>RANDBETWEEN<\/strong> function all the time whenever I need to create a sample data set.<\/p>\n<p>The cool thing about the <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/category\/formulas\/math\/randbetween\/\" target=\"_blank\" rel=\"noopener\">RANDBETWEEN function<\/a> is that if you don&#8217;t like the numbers that it has given you, you can press F9 in a cell and it will give you new numbers.\u00a0 Try it out by downloading the sample workbook!<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/M3-jiC9YU74?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle;\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/10\/Randbetween.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2014\/10\/Randbetween.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">Randbetween.xlsx<\/span><\/a><\/p>\n<p class=\"line-two\">\n<\/div>\n<p>We want to enter some random numbers from 10 to 10,000.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:\u00a0<\/strong><\/span>We need to enter the <strong>RANDBETWEEN<\/strong> function in a blank cell:<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\">=RANDBETWEEN(<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"RANDBETWEEN Function for Excel Dates\"  class=\"aligncenter size-full wp-image-9812\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween1.png\" alt=\"RANDBETWEEN Function for Excel Dates\" width=\"592\" height=\"410\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween1.png 592w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween1-300x208.png 300w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000;\">STEP 2:<\/span><\/strong> The <strong>RANDBETWEEN<\/strong> arguments:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/randbetween-function\/#Bottom_number\" title=\"Bottom_number\">Bottom_number<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/randbetween-function\/#Top_number\" title=\"Top_number\">Top_number<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Bottom_number\"><\/span><span style=\"color: #0000ff;\"><em>Bottom_number<\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is your minimum value?<\/strong><\/p>\n<p>For our example it&#8217;s 10<\/p>\n<h2 style=\"text-align: center;\">=RANDBETWEEN(<span style=\"color: #0000ff;\">10,<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"RANDBETWEEN Function for Excel Dates\"  class=\"aligncenter size-full wp-image-9813\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween2.png\" alt=\"RANDBETWEEN Function for Excel Dates\" width=\"539\" height=\"116\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween2.png 539w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween2-300x65.png 300w\" sizes=\"(max-width: 539px) 100vw, 539px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Top_number\"><\/span><span style=\"color: #0000ff;\"><em>Top_number<\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is your maximum value?<\/strong><\/p>\n<p>For our example it&#8217;s 10,000<\/p>\n<h2 style=\"text-align: center;\">=RANDBETWEEN(10, <span style=\"color: #0000ff;\">10000)<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"RANDBETWEEN Function for Excel Dates\"  class=\"aligncenter size-full wp-image-9814\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween3.png\" alt=\"RANDBETWEEN Function for Excel Dates\" width=\"539\" height=\"86\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween3.png 539w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween3-300x48.png 300w\" sizes=\"(max-width: 539px) 100vw, 539px\" \/><\/p>\n<p>Apply the same formula to the rest of the cells by dragging the lower right corner downwards. Then drag it to the right to populate all the cells.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"RANDBETWEEN Function for Excel Dates\"  class=\"aligncenter size-full wp-image-9815\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween4.png\" alt=\"RANDBETWEEN Function for Excel Dates\" width=\"556\" height=\"292\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween4.png 556w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween4-300x158.png 300w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"RANDBETWEEN Function for Excel Dates\"  class=\"aligncenter size-full wp-image-9816\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween5.png\" alt=\"RANDBETWEEN Function for Excel Dates\" width=\"553\" height=\"304\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween5.png 553w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/07\/Randbetween5-300x165.png 300w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/p>\n<p>You now have all of the random numbers!<\/p>\n<p><span style=\"color: #0000ff;\"><strong>How to Use the Randbetween Formula in Excel<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; What does it do? Returns a random integer number between the numbers you specify. Formula breakdown: =RANDBETWEEN(bottom number, top number) What it means: =RANDBETWEEN(10, 10000) I use the RANDBETWEEN function all the time whenever I need to create a sample data set. The cool thing about the RANDBETWEEN function is that if you don&#8217;t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17508,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"RANDBETWEEN Function","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[3,15,293],"tags":[43,65],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/998"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=998"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/998\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17508"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}