Excel Randomly Choose Yes Or No #Shorts

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Apr 13, 2023.
Excel randomly choose Yes or No.
Use CHOOSE and RANDBETWEEN for a roughly 50/50 split.
Or use IF and RAND to generate an approximate percentage of one or the other.
maxresdefault.jpg


Transcript of the video:
How do we randomly choose between yes or no in Excel? Let's talk about RANDBETWEEN first.
RANDBETWEEN between 1, 2 will randomly generate the numbers one or two.
And then we send that whole thing into CHOOSE. So we get a one or two there, and then this is what we get. For 1 Yes.
For 2, No. Close paren.
And you see that we should be in general about 50/50.
What if you want less or more Yes? So then we say =IF( the RAND() is less than or equal to 20% then “Yes” otherwise “No”. Now this is not going to be perfect.
Over thousands of times it will work out to about 20%.
But like right here it won't. Five out of 20, so that's 25%.
Press F9 and two. If you like these videos, please, down below, Like, Subscribe, and Ring the Bell. Feel free to post any questions or comments in the comments below.
 

Forum statistics

Threads
1,224,856
Messages
6,181,427
Members
453,040
Latest member
Santero

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top