Тёмный

Generate a Random Number but Exclude Some Numbers 

Doug H
Подписаться 78 тыс.
Просмотров 27 тыс.
50% 1

This is going to be an exclusive video...well basically it's going to show you how to create random numbers and exclude a number (or set of numbers) from that list. There are three examples that I'll show. One showing how to exclude odd or even numbers from a random number list. The second will show how to exclude a set of numbers from a larger list. And the last example will show how to randomly generate a number in two steps but with in the second instance, it can not be a repeat of the first randomly generated number. Check out the video for the random goodness.
P.S. One thing to note on the first example is that you could get a number that is outside the RANDBETWEEN range (1 to 100) in the ODD number example. In that case it can be wrapped in an IF function to mitigate it. The function could be like =IF(ODD(RANDBETWEEN(1,100))=101,ODD(RANDBETWEEN(1,100)),ODD(RANDBETWEEN(1,100)))
🔔 SUBSCRIBE to my channel ➜ goo.gl/wN3c3p
🏫 Excel Training ➜ www.exceltraining101.com/p/tr...
📚 Excel Books & Tech Gear ➜ www.amazon.com/shop/dough
⚙️ Tools: Screencasting ➜ techsmith.z6rjha.net/5Qe53
⚙️ Tools: Microsoft Office ➜ microsoft.msafflnk.net/rKL0G
⚙️ Tools: TubeBuddy ➜ www.tubebuddy.com/et101
📝 This description may contain affiliate links and we'll receive a small commission if a purchased is made using the links (but at no additional cost to you). It'll support the channel and so more videos like this can be made. Thanks for your support!
🎁 If you find these videos useful and want to support my channel go to / doughexcel
#excel
#msexcel
#doughexcel
~-~~-~~~-~~-~
Please watch: "Convert Table in a PDF File to Excel"
• Convert Table in a PDF...
~-~~-~~~-~~-~

Опубликовано:

 

7 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@rockguitarist8907
@rockguitarist8907 7 лет назад
Thank you Doug! Someone at work was asking me how to do the third example a couple months ago saying they always wanted to know how. Tomorrow I can share your video with him to show him how! Cheers to the MrExcel contributor as well. 🍺🥂
@DougHExcel
@DougHExcel 7 лет назад
Hi rockguitarist8907, glad you liked it, thanks for commenting!
@RobCLynch
@RobCLynch 2 месяца назад
I would be interested to know how to have Excel generate a random 3 digit number, whilst excluding a data list of 3 digit numbers.
@lornacarey9792
@lornacarey9792 2 года назад
This is exactly what I needed. Thank you.
@DougHExcel
@DougHExcel 2 года назад
You're so welcome!
@kingsleyimo8012
@kingsleyimo8012 7 месяцев назад
What is the purpose of the small function in expression to get random number excluding previous random number please?
@rylandstevens5211
@rylandstevens5211 6 лет назад
For your last example, let's say I want to add a 3rd row with a function that chooses a random number between 1 & 7, but I don't want to repeat the 1st or 2nd randomly generated number. What formula would I use to achieve this?
@DougHExcel
@DougHExcel 6 лет назад
Maybe this video can give some insight -> ru-vid.com?o=U&video_id=N_BrUTce1EI
@nhidinhbasgen1539
@nhidinhbasgen1539 6 лет назад
Do you have a tutorial on how to count duplicate numbers in the same row? For example 171, I would like to create a formula that will say "YES" indicating that there's a duplicate in that particular row?
@DougHExcel
@DougHExcel 6 лет назад
these might give some insights...ru-vid.comsearch?view_as=subscriber&query=countif the 1st vid might apply with COUNTIF if those numbers have a delimiter and can be separated into other columns. If the numbers can be transposed into separate rows, then the other videos might help too.
@uumarov
@uumarov 6 лет назад
I want to create a sample (of ten) using random numbers (in excel) while excluding the ones which have already been selected above. How Excel handles this task?
@DougHExcel
@DougHExcel 6 лет назад
See this video for some insight => ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ySN1VhlaPtU.html
@Razielus89
@Razielus89 3 года назад
is it possible to make function that will be choosing random number from range 1-36 AND 82-146 ? Or I have to write all included numbers?
@DougHExcel
@DougHExcel 3 года назад
maybe one of these other videos will give insight ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Z_b3iSEbvtA.html
@raphaelbonillo2192
@raphaelbonillo2192 4 года назад
What is the name of the program you use to record and how do you make the key shortcuts appear in the recording?
@DougHExcel
@DougHExcel 4 года назад
Camtasia, there's an affiliate link in the description. The keyboard shortcut icons are a feature in the editing portion of the software.
@michellealexander9864
@michellealexander9864 3 года назад
How can you create 5 random numbers , excluding some and not getting repeat numbers? Like lottery numbers?
@DougHExcel
@DougHExcel 3 года назад
maybe one of these ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-68pZ0urMFkQ.html
@ashzole
@ashzole 2 месяца назад
How do you sort it from lowest to highest and does not refresh when recalculated
@DougHExcel
@DougHExcel 2 месяца назад
it's a volatile function meaning it'll do refresh unless copy/paste values. An alternative is to put this into Power Query. Though not exactly same thing, take some ideas from video at ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-WYFgsxz_Rdo.html
@wowitstaylor9
@wowitstaylor9 3 года назад
does this work on mac because my laptop is struggling lol it just keeps saying "NAME?" what do i do to fix that?
@DougHExcel
@DougHExcel 3 года назад
AFAIK being on MAC should not affect this...
@danieltigas9771
@danieltigas9771 3 года назад
I tried doing this on google sheets but when I use one it says no valid input data
@DougHExcel
@DougHExcel 3 года назад
Hi Daniel Tigas, thanks for the comment though I don't know about Google sheets
@matthewdunnuck9998
@matthewdunnuck9998 6 лет назад
How do you get f9 to recalculate?
@DougHExcel
@DougHExcel 6 лет назад
Depends on your keyboard configuration. You might need to toggle the FN key to get the function keys active.
@nhidinhbasgen1539
@nhidinhbasgen1539 6 лет назад
Yes, this is helpful but how do we add two formulas...let's say exclude odd but make sure the six random number add up to the sum of ###?
@DougHExcel
@DougHExcel 6 лет назад
Not sure...but Goal Seek might help. See vids for insight -> ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0ImDmYwysXo.html or ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-j5CU_hSEWvo.html
@nhidinhbasgen1539
@nhidinhbasgen1539 6 лет назад
do you think using Solver will be better or Goal Seek?
@nhidinhbasgen1539
@nhidinhbasgen1539 6 лет назад
i figured it out: stackoverflow.com/questions/21782329/generate-n-random-numbers-whose-sum-is-a-constant-k-excel, thank YOU Doug, much appreciated of your prompt replies!
@DougHExcel
@DougHExcel 6 лет назад
ah yes Solver...i almost forgot about that one. Yea that might be a better tool :-) ---> ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-wpbDB5JNy50.html
@DougHExcel
@DougHExcel 6 лет назад
Nice Thanks for adding to the thread, it'll help others!
@godsendsdeath666
@godsendsdeath666 7 лет назад
Randbetween(1,100) and 101 shows up... lol
@DougHExcel
@DougHExcel 7 лет назад
Yep, one of the quirks of this one if that it will round up on the ODD function. A way to take care of this is to use enclose the RANDBETWEEN in an IF function like this =IF(ODD(RANDBETWEEN(1,100))=101,ODD(RANDBETWEEN(1,100)),ODD(RANDBETWEEN(1,100)))
@alocalderon1997
@alocalderon1997 8 месяцев назад
eveything was great until the small function made it result in #num result
Далее
Lottery Number Generator Inside Out
8:50
Просмотров 9 тыс.
3M❤️ #thankyou #shorts
00:14
Просмотров 7 млн
Lasagna Soup @Lionfield
00:35
Просмотров 7 млн
S1E7 Text Column
4:09
Просмотров 106
Lookup the Last Matching Value
6:19
Просмотров 35 тыс.
Generate Random Numbers in Excel
5:46
Просмотров 316 тыс.
Create an Excel Lottery Number Generator
14:15
Просмотров 835 тыс.
Pick a Name at Random from a List - Excel Formula
4:08
3M❤️ #thankyou #shorts
00:14
Просмотров 7 млн