How to generate random Yes or No in Excel?
In some special cases, we may want to generate random Yes or No in a range in Excel, here I will tell you some formulas to quickly generate random Yes or No in Excel.
Generate random Yes or No in Excel 2007/2010/2013
Generate random Yes or No in Excel 2003 or below
Generate random Yes or No in Excel with Kutools for Excel ![]()
Comparison of Methods for Generating Random Yes or No in Excel
To generate random Yes or No values in Excel, you can use built-in formulas or Kutools for Excel's Insert Random Data feature. Both methods can randomly return Yes or No, but they differ in setup, flexibility, and result behavior.
| Comparison | Excel Formulas | Kutools Insert Random Data |
|---|---|---|
| How it works | Use formulas such as CHOOSE with RANDBETWEEN or IF with RAND to randomly return Yes or No | Create a Yes/No custom list and randomly fill the selected range from that list |
| Custom values | Replace "Yes" and "No" in the formula with other text values as needed | Create a custom list with Yes/No or other text items and reuse it for random filling |
| Result behavior | Dynamic — RAND and RANDBETWEEN results can change when the worksheet recalculates | Values are filled directly into the selected cells without formulas |
| Best for | Simple dynamic Yes/No generation using built-in Excel functions | Quickly filling a range with random Yes/No or other predefined text values without formulas |
Generate random Yes or No in Excel 2007/2010/2013
Please select a cell and type this formula =CHOOSE(RANDBETWEEN(1,2),"Yes","No") into it, and press Enter key. If you need, you can drag the fill handle to a range to fill the formula.
Note: You also can use this formula =IF(ISODD(INT(RAND()*(100-1)+1)),"Yes","No") to generate random Yes or No.
Generate random Yes or No in Excel 2003 or below
The above two formulas cannot work in Excel 2003 or below, I introduce another formula for you.
Select a cell and type this formula =IF(RAND()<=0.5,"Yes","No") into it, then press Enter key, if you need, drag the fill handle to a range.
Tip: this formula also can be used in Excel 2007/2010/2013.
Generate random Yes or No in Excel with Kutools for Excel
With Kutools for Excel’s Insert Random Data function, you can generate random Yes or No as you need.
After free installing Kutools for Excel, please do as below:
1. Select a range you want to randomize Yes or No, and click Kutools > Insert > Insert Random Data. See screenshot:
2. In the Insert Random Data dialog, click Custom list tab, then click the add button, then in the popping Create Sequence dialog, type Yes,No into the text box, click Ok. See screenshot:

3. Then the new custom list has been added to the Insert Random Data dialog, click Ok or Apply, then the selected range has been filled with Yes or No randomly.
Randomize Yes And No
Conclusion
Excel formulas provide a simple built-in way to generate random Yes or No values. For example, CHOOSE combined with RANDBETWEEN can randomly return either text value, while IF combined with RAND provides another option. These formulas are convenient when you want the random results to remain dynamic, but the values may change whenever Excel recalculates.
Kutools for Excel's Insert Random Data provides a formula-free approach for filling a range with random text values. You can create a custom list containing Yes and No and then randomly populate the selected cells from that list. The custom-list approach can also be adapted to other predefined text options, making it useful when you frequently need to generate random categorical or sample data.
Relative Articles:
- Generate random weekday or weekend in Excel
- Generate random even or odd numbers in Excel
- Generate unique random numbers in Excel
- Generate positive or negative numbers in Excel
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
All Kutools add-ins. One installer
Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.
- All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
- One installer, one license — set up in minutes (MSI-ready)
- Works better together — streamlined productivity across Office apps
- 30-day full-featured trial — no registration, no credit card
- Best value — save vs buying individual add-in