April 9

Generating random qualitative data in a pinch


There are plenty of terrific random data generators for Excel out there. But sometimes you just need some fake data qualitative data without the fuss.

For instance, perhaps I want to generate a random list of data points with the values low, medium, or high. A simple method I recommend combines RANDBETWEEN with CHOOSE. Take a look:

=CHOOSE(RANDBETWEEN(1,3), “low”, “medium”, “high”)

All I would need to do now is use the formula above and then drag down to create a list of random, qualitative data.


If I want more weight given to a certain variable, say I want low to appear 50% of the time, I can adjust the bounds of my RANDBETWEEN and repeat the data item.

=CHOOSE(RANDBETWEEN(1,4), “low”, “low”, “medium”, “high”)

It’s not the most elegant solution, I admit. But like I said, it does well in a pinch.



You may also like

February 17, 2022

Edit Excel Formulas in WORD – Spreadsheet Tips and Tricks

February 8, 2021

51: Oz du Soleil & the Global Excel Summit 2021

January 29, 2021

Global Excel Summit 2021

January 22, 2021

50: Randy Austin – Excel for Freelancers

January 8, 2021

49: Theresa Estrada – Microsoft Principal Program Manager Lead

May 26, 2020

All Excel LOOKUPs Explained
  • I have a similar approach, but I assume rand produces a uniformly distributed distribution, which when multipled by itself acts like the the variable x in x^2. You can then use multiple rands and power commands to produce equations, which become stepwise when one of the round functions are applied. This allows for a rich variation in randomness when you encode the rounded values to qualitative data. I use this to produce simulated web traffic data, which can be used as a practice set for analysts.

  • Example pseudo code: Choose ( roundup ( power (randbetween (1, 4), 2), 0), “low”,”middle”,”high”)

  • Hello Jordan,
    Here is a slightly shorter formula: =CHOOSE(1+4*RAND(), “one”, “low”,”medium”,”high”)
    Best regards. Hervé Thiriez.

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

    Free Power User Quick Guide

    Discover The BEST Ways To Use Lookups And Conditional Calculations Quickly And Easily With This Reference Guide -- You Won’t Want This To Leave Your Side

    With so many ways to use Excel, it can be difficult to memorize all of the key functions, calculations, and techniques you can employ to meet your goal: simply get the job done.