How to Create Random Numbers in Excel (including no repeats)

Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
In this video I'll show you how you can easily create sample data in Microsoft Excel. Generating Random data is often needed for testing or if you need to share a file with someone who shouldn't see your actual data. I'll cover different methods to create random numbers including a solution that creates random data without repeats.
⬇️ DOWNLOAD the workbook here: pages.xelplus.com/random-numb...
Here's what you'll learn:
Basic to Advanced Techniques: From simple random decimal numbers to complex non-repeating integer lists, this video covers a range of methods suitable for various needs.
Using RAND Function: Discover how to use the RAND function to create random decimal numbers between 0 and 1, and learn tips to prevent them from recalculating.
RANDBETWEEN for Specific Ranges: Learn how to use the RANDBETWEEN function for generating random integers within a specific range, and how to convert them into decimal numbers.
RANDARRAY Function in Office 365: Explore the RANDARRAY function available in Office 365 and Excel on the web for generating multiple rows and columns of random numbers.
Unique Function for No Repeats: Combine RANDARRAY with the UNIQUE function to ensure your random numbers don't repeat, understanding how to manage potential errors.
Sequence and Sort By for Random Order: Learn how to use the SEQUENCE and SORT BY functions to create non-repeating, randomly ordered numbers without resizing issues.
Non-Office 365 Solution: Discover an alternative method using the RAND function and custom sorting for those not using Office 365.
00:00 How to Generate Random Numbers in Excel
00:29 How to Use the RAND Function
01:15 How to Use the RANDBETWEEN Function
02:05 How to Use the RANDARRAY Function
02:59 How to Create Random Numbers WITHOUT Repeats
04:11 Use Sequence function to get Avoid Repeats & errors
05:54 Non Office 365 Solution to Avoid Repeats
06:44 Wrap Up
LINKS to more Excel videos: • Excel Advanced Formula...
★ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
➡️ Join this channel to get access to perks: / @leilagharani
👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
🎥 RESOURCES I recommend: www.xelplus.com/resources/
🚩Let’s connect on social:
Instagram: / lgharani
LinkedIn: / xelplus
Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
#excel

Пікірлер: 222

  • @LeilaGharani
    @LeilaGharani6 ай бұрын

    Grab the file I used in the video from here 👉 pages.xelplus.com/random-number-generator-file

  • @jeanlucfcn6876
    @jeanlucfcn68763 жыл бұрын

    Le rythme, les explications tout est parfait. C’est la première fois que je planche sur Excel à cette heure de la nuit sans m’endormir !!!! Bravo.

  • @advaitpetiwale9596
    @advaitpetiwale95963 жыл бұрын

    Your tutorials are totally worthwhile. I don't know if I will ever need this, but this video is so memorable that I will recall it if and when the need arises..!

  • @amrabilalovic9651
    @amrabilalovic96512 жыл бұрын

    This is so convenient. Thank you so much for putting all these in one place, you rock!

  • @nijapillai9217
    @nijapillai92173 жыл бұрын

    Your lessons are amazing! I totally love it. The explanations , presentation, content everything is on point!💯

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    Thank you! I appreciate that!

  • @JoseSantos-eu8hg
    @JoseSantos-eu8hg Жыл бұрын

    Hey! Many thanks once more! Always with super accurate and straight forward examples!! Keep going the good work :)

  • @ibrahimismayilov1332
    @ibrahimismayilov13323 жыл бұрын

    Many thanks for the clear explanation, Leila!

  • @JimFikes
    @JimFikes3 жыл бұрын

    You are the greatest, Leila. I had not thought of using unique with randarray yet.

  • @markdavies4255
    @markdavies42553 жыл бұрын

    Hi Leila I have been following you for about 18 months thank you so much for taking my Excel knowledge to the next level

  • @serdalkaptan
    @serdalkaptan Жыл бұрын

    Wonderful info, Leila. I was scratching walls to create vba or macro in order to refresh the numbers, but your F9 method which I just tried on my random number generator works perfectly! It made my life a lot easier, and besides you teach a lot of some other important excel tricks. Thank you very much . . . .

  • @LeilaGharani

    @LeilaGharani

    Жыл бұрын

    Glad it was helpful!

  • @jasonipfatsiong2062
    @jasonipfatsiong20623 жыл бұрын

    Just what I was looking for…perfect timing thank you so much.

  • @MrBradleykeith
    @MrBradleykeith2 жыл бұрын

    Nice to see that I am not the only one who is still learning, I would love for you to do a "simple😂😂" googlemaps type route/distance calculator between two business locations. Love your channel.

  • @inna6141
    @inna61413 жыл бұрын

    Cool, Leila!!! Thanks! That was one I needed 😀👍👍👍

  • @chrism9037
    @chrism90373 жыл бұрын

    Love it, thanks Leila!

  • @DaveAMcLaughlin
    @DaveAMcLaughlin3 жыл бұрын

    Thank you, Leila for all of these amazing tutorials. They are very much appreciated! :)

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    Glad you like them, Dave!

  • @IzharHazelEspinozaCastillo
    @IzharHazelEspinozaCastillo3 жыл бұрын

    ... FELICITACIONES x TUS VIDEOS!! CONGRATULATIONS FOR YOUR VIDEOS !! ERES UN EJEMPLO A SEGUIR!! YOU ARE AN EXAMPLE TO FOLLOW !!

  • @yassirkhalid5376
    @yassirkhalid53763 жыл бұрын

    Good job Liela, good job 👌🏽 Never regret watching your videos, the topic seems familiar to me, all functions you mentioned are well known to me and I'm using them frequently, but yet I opened the video! Not surprisingly, I found something new and interesting too! Looking forward to that one day for me opening your videos and learn nothing, I guess I will spend a lot of time until then!

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    Happy to hear you found something new!

  • @trik3002
    @trik30023 жыл бұрын

    Thanx a lot mam,I found solution to one of my problem I was stuck in since long from your this video. Thanx a lot

  • @FVG-
    @FVG-7 ай бұрын

    This is the best explanation I have seen on the rand function so far...Thanks a lot!

  • @LeilaGharani

    @LeilaGharani

    7 ай бұрын

    Glad it was helpful!

  • @narendralimbu2937
    @narendralimbu2937 Жыл бұрын

    I learned a lot about rand function. I love you.

  • @varisco311
    @varisco3113 жыл бұрын

    Thank you Leila. Finally! A useful formula to help me pick the random winning Powerball numbers 😁

  • @nonoobott8602
    @nonoobott86023 жыл бұрын

    Great tutorial as always. Thanks for sharing

  • @houstonsaft
    @houstonsaft3 жыл бұрын

    Great one again, Leila!

  • @melissatelfer7671
    @melissatelfer7671 Жыл бұрын

    thank you SOOOO much! I needed this for my experimental design and it worked perfectly!

  • @cvdmeer100
    @cvdmeer1004 ай бұрын

    So happy with this. I saved this one 👍🏻. Thank you!!

  • @ntahir9670
    @ntahir96702 жыл бұрын

    Thank you. I needed this for tutoring kids for time tables. This is truly amazing. So simple buy I didn't know how until I saw this. Lovely lady you are. :)

  • @soumitratewari483
    @soumitratewari4832 жыл бұрын

    Mam your teachings are very helpful. Thanks a load for your effort.

  • @tifouraamina1761
    @tifouraamina17613 жыл бұрын

    Really handy tips 😉 I was looking for that for a while 🤗 thank you Leila

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    You’re welcome 😊

  • @Grumpy_Granddad
    @Grumpy_Granddad3 жыл бұрын

    Great as Always --- as a part time Bingo caller I can see my spreadheet random number generator changing in the near future

  • @ismailmasoom5007
    @ismailmasoom5007 Жыл бұрын

    THANK YOU DEAR LEILA JAN, YOU ARE HELPFUL AND AWESOME LECTURER.

  • @mochi7478
    @mochi747811 ай бұрын

    I'm making my own Number Sense practice sheets, and the Google searches I've seen explain these functions so poorly; this video was a lifesaver

  • @hossein3945
    @hossein3945 Жыл бұрын

    Thanks Leila. Solved my problem as always

  • @darrengodkin
    @darrengodkin3 жыл бұрын

    Handy tips as always Leila, very intuitive, thanks for sharing

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    My pleasure, Darren!

  • @dipayandebnath6136
    @dipayandebnath61363 жыл бұрын

    Just simply awesome 👍

  • @tdsmith
    @tdsmith Жыл бұрын

    Thank you! You are very talented and easy to understand!

  • @LeilaGharani

    @LeilaGharani

    Жыл бұрын

    Wow, thank you!

  • @hardhik28
    @hardhik283 жыл бұрын

    Cute technique. Thanks for sharing ☺️

  • @vijayarjunwadkar
    @vijayarjunwadkar3 жыл бұрын

    Hmmm, just when I think I know enough of a feature in Excel, Leila ensures that I don't and what a boon it is really! Thanks again Leila for showing what is possible with random numbers! Nice video! 😊👍

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    Glad you found something new, Vijay!

  • @parvathyvnair
    @parvathyvnair3 жыл бұрын

    Cool! That'll definitely be helpful! 😃

  • @alastairjulie1421
    @alastairjulie1421 Жыл бұрын

    Great video. This has helped me, along with a lookup formula, to create a random staff rota.

  • @LeilaGharani

    @LeilaGharani

    Жыл бұрын

    Glad it was helpful!

  • @Armstrong_N14
    @Armstrong_N144 ай бұрын

    You are the best in this field. Thank you for sharing the knowledge and working so hard to present it excellently. Everything is so smoothly presented precise, concise and on point.

  • @LeilaGharani

    @LeilaGharani

    4 ай бұрын

    Wow, thank you!

  • @clickbisi7016
    @clickbisi70163 жыл бұрын

    This is randomly awesome 😆

  • @pallavshresthasingh2936
    @pallavshresthasingh29363 жыл бұрын

    You are awesome. You have really helped me a lot I am impressed how these small changes can now help me with my data

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    Great to hear!

  • @DougHExcel
    @DougHExcel3 жыл бұрын

    Thanks for the "random" video full of neat surprises!

  • @ava_chavoshi
    @ava_chavoshi2 жыл бұрын

    Thank you! :)

  • @JoachimKondo2023
    @JoachimKondo202315 күн бұрын

    Thank you so much 💓

  • @darylseaton6493
    @darylseaton64933 жыл бұрын

    Thank you so very much. This was a great video!!!

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    Glad you enjoyed it, Daryl!

  • @Udaykaujiya
    @Udaykaujiya3 жыл бұрын

    Wow... Very nice explain.

  • @jodavila16
    @jodavila163 жыл бұрын

    Nice Video!!

  • @andreastjahjadi6503
    @andreastjahjadi65032 жыл бұрын

    Leila, your video is amazing. Thanks so much. Can you explain how to make a sort number by group of columns (example: by area)

  • @rajeevgosavi4514
    @rajeevgosavi4514 Жыл бұрын

    A Great technique. Now I understand the entire content properly. Thanks once again Madam. May I also request you to please upload the video regarding creation of random letterrs and A TO Z alphabets.

  • @HellPiece
    @HellPiece3 жыл бұрын

    Amazing as always

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    Thank you! Cheers!

  • @rafatali6058
    @rafatali60583 жыл бұрын

    Fantastic tric Thank you so much Mam God bless you with your fmly

  • @wurianda
    @wurianda Жыл бұрын

    thank you so much

  • @Ryuzaki2100
    @Ryuzaki21003 жыл бұрын

    Hi Leila, honestly, I never knew about how powerful Excel is and your channel helped me realized that. I have one question tho, I have to ask the professional. How did you create that animation at 0:23?

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    That's prepared with Premier Pro and After Effects.

  • @Esakkiappan85
    @Esakkiappan853 жыл бұрын

    Awesome 👍

  • @nuhawoley988
    @nuhawoley9882 жыл бұрын

    Thank you

  • @calevenice
    @calevenice3 жыл бұрын

    You are the reason why I don't rank my Excel skills as a 10 out of 10. Thank you 🙂

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    😁

  • @cheesepun

    @cheesepun

    2 жыл бұрын

    even she's learning

  • @shubhampawar8506
    @shubhampawar85063 жыл бұрын

    Superb 👌

  • @ranaganguli2892
    @ranaganguli28923 жыл бұрын

    Very useful while making roster for team..

  • @wisdom_uboh
    @wisdom_uboh3 жыл бұрын

    VERY NICE 👍👍

  • @joshmckintosh9713
    @joshmckintosh97133 жыл бұрын

    Hi Lelia, Thanks for showing awesome Excel capabilities. Wondering any suggestion for generating predictive number based on historical data; say for example if i have set actual data of past 100 outcome of coin toss? Any statistical function in Excel 365 is available? Thanks in advance JM

  • @sulekhagagrai7292
    @sulekhagagrai7292 Жыл бұрын

    Thank you mam..

  • @Betterifitsfree
    @Betterifitsfree3 жыл бұрын

    So cool and useful in randomly choosing next weeks Powerball numbers 🔮 🎰 💰

  • @prabhakarrao4922
    @prabhakarrao49223 жыл бұрын

    Thanks excellent tutorial

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    Glad you liked it.

  • @richardsrichu2488
    @richardsrichu2488 Жыл бұрын

    Thanks

  • @fathollahkhoshbakhti6264
    @fathollahkhoshbakhti6264 Жыл бұрын

    Thank you for your perfect explanation, in case I need to select the value randomly but just for many specific values I would specify them taking the percentage of repeated values that I will define, into account, what can I do? thank you

  • @rajaramkumar2790
    @rajaramkumar27908 ай бұрын

    It much helpfull

  • @mokka61
    @mokka613 жыл бұрын

    The one of excel expert

  • @Stef1955
    @Stef19553 жыл бұрын

    Once again you have proved that I have a lot more to learn with Excel!

  • @LeilaGharani

    @LeilaGharani

    3 жыл бұрын

    There's always more to learn :)

  • @sandeeppeddi7075

    @sandeeppeddi7075

    3 жыл бұрын

    @@LeilaGharani this makes me more happier 😀

  • @kolavithonduraski5031
    @kolavithonduraski50313 жыл бұрын

    we have now google sheets and the excel web app. a comparison would be fine... maybe in more than just one vid. there is surely something google sheets can, and excel can't... and ofc vice versa. that would be a cool topic, if you are searching for some future topics 😁👍 thank's anyway for your work

  • @elnurganbarov6502
    @elnurganbarov65023 жыл бұрын

    you are amazing

  • @dragonshadow1902
    @dragonshadow19023 жыл бұрын

    Added to my list of Excel Wizardry.

  • @reggiegagnon2004
    @reggiegagnon20043 ай бұрын

    Cool... I now know how to generate Random Numbers without repeats! THanks! 🙂

  • @LeilaGharani

    @LeilaGharani

    3 ай бұрын

    Glad it helped!

  • @asoteico9528
    @asoteico95283 жыл бұрын

    Great and sweet…!!!

  • @christianwillumsen1639
    @christianwillumsen1639 Жыл бұрын

    Good video :) Any nice tips for random names as well ?

  • @PeymanSayyadi
    @PeymanSayyadi3 жыл бұрын

    Genius!

  • @nsanerydah
    @nsanerydah2 жыл бұрын

    Good Evening Ma'am, Thanks for all the information. Your videos continue to be great sources of knowledge for the multitudes. I have a quick question pertaining to the number ranges. Can you set the randbetween to only select whole numbers by tens or hundreds or thousands? [randbetween(100,900)] where it will only pick 100, 200, 300 ,400,ect randomly? I'm trying to make a homework generator for my daughter using similar problems that she sees in class, without having to randomly type out everything for each day. Thank you!

  • @prntgud1513
    @prntgud15133 жыл бұрын

    🌹🌹💜thanks miss

  • @pixelcris
    @pixelcris2 жыл бұрын

    Hi Leila, you are amazing! Every day I learn something new from you. I need help extracting a random unique list from an existing list. My list has three columns. The first column contains names, the second column contains a case number, the third contains a resolution number. The names repeat (i.e. a name has various case and resolution numbers assigned to it). How can I extract a random list for unique names only? Thank you.

  • @divyangpastagiya5505
    @divyangpastagiya55053 жыл бұрын

    Interesting & well explained !! Can you share how to put random dates ?

  • @magnushultgrenhtc

    @magnushultgrenhtc

    3 жыл бұрын

    Dates are numbers. For clarity, you can set a lower and upper limit in separate cells and refer to those cells. Just remember to format the outcome as a date.

  • @gilbertwanjiku9731
    @gilbertwanjiku97312 жыл бұрын

    Leila, Thanks for the videos, appreciated very⁹ much!! How do I go about with a list of names say for team peer to peer review. The output needed is a list of "Peer to Review" from team list, Noting that ; a. You can't review yourself and, b. Each member has to participate. Thanks in advance.

  • @Stef1955
    @Stef19553 жыл бұрын

    Do you have plans to do a Power Automate Desktop course?

  • @hiteshk8758
    @hiteshk87583 жыл бұрын

    Wow what a fantastic way to accomplish that. Keep on sharing this with us. Love from #khushvibes channel

  • @noguerar2661
    @noguerar26613 жыл бұрын

    Rand() function works randomising values from a uniform distribution. But what about getting random numbers from another kind of distribution - normal, Poisson, etc?

  • @TazKhan70
    @TazKhan702 жыл бұрын

    Hi Leila, I am using a combination of CHAR and RANDBETWEEN functions to generate a random password of 10 character starting with Capital and a mixture of Alphanumeric and special characters but whenever the spreadsheet refreshes it changes the values and I like to keep the values. =CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(97,122))&CHAR(RANDBETWEEN(35,38))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(60,63))&CHAR(RANDBETWEEN(97,122))&RANDBETWEEN(101,989)

  • @abdusaziz1266
    @abdusaziz12662 ай бұрын

    Thanks. Please show how to select random work orders and value of data. Please. Thanks

  • @richprince2818
    @richprince28182 жыл бұрын

    I have Office 365 and noticed that random number generator, which I created years ago, no longer recalculates when I depress F9. Through some experimenting on the keyboard, that the Function key + F9 now recalculates my 60 fields for random numbers. Just and FYI. Thanks for your videos.

  • @Kolian1274
    @Kolian12743 жыл бұрын

    Hi Thanks for easy to understand video Can you tell me how I can creat 5 digit random numbers between 10 to 30

  • @maheshmahee2782
    @maheshmahee27823 жыл бұрын

    Hi Leila..Please explain how to write Macros for csv formatted files.. Thank you.

  • @sarkowijaya
    @sarkowijaya3 ай бұрын

    Hebat

  • @ishan89100
    @ishan891003 жыл бұрын

    Hi... Plz guide how to concatenate two cells by keeping the text color format?

  • @manishgajjars7557
    @manishgajjars75573 жыл бұрын

    Hi Leila.. would you suggest for data analysis which is better.. MAC or Windows..

  • @CalicoCooperFan
    @CalicoCooperFan3 жыл бұрын

    Can you do a video on best practices for storing important emails outside of outlook? The company i work for rolls emails off after 90 days. Projects I work on can last all year and email has lots of history in it related to projects that I sometimes need to reference....like proof of project decisions made. How do you extract important emails? What are best practices for organizing and storing them so I can find them long after that 90 day retention threshold is hit. Thanks.

  • @righttoknow8196
    @righttoknow81967 ай бұрын

    Hi mam Your all lessons are amazing. I have a question that is 10000 is my total sale. I want to convert this value into 15 days but without repeating. Pls suggest which formula will apply.

  • @Mohammad3000100
    @Mohammad30001003 жыл бұрын

    Thank you for your explanation But for sure Randbetween function makes repeated number I am positive you know that Could we somehow make it with out repetition I found some salutions but they are sort of compelecated

  • @hibee04
    @hibee043 жыл бұрын

    Hi Leila, This is a great tool but my version of Excel does not have the "=unique(randarray", "=rand(array) or "=sequence" functions. is there another way to use those functions? Thanks so much

  • @sjn7220
    @sjn72203 жыл бұрын

    Great for Monte Carlo simulations.

  • @mpo3565
    @mpo35652 ай бұрын

    This is great, how can do I a random sequence for say 24 rows but within those rows are random numbers from 1 to 36 ?

  • @mohdzia8509
    @mohdzia85093 жыл бұрын

    Leila- I have a list of 10 companies and each company has 5 or more contacts. I wish to assign the same number to the first contact of each company. For example- Assign #1 to the first contact of each company. Assign #2 to the second contact of each company. So on and so forth for the rest of contacts

  • @NonaPrince
    @NonaPrince3 ай бұрын

    Can I use Randbetween with unique to get non repetitive numbers?