+ Reply to Thread
Results 1 to 6 of 6

Inserting words from a (predefined) set, randomly

  1. #1
    Ill-mannered User
    Join Date
    09-06-2012
    Location
    Probably NE USA
    MS-Off Ver
    Excel 2013
    Posts
    24

    Inserting words from a (predefined) set, randomly

    Hi!

    What I want is a column with the values "red," "blue," "white," and several other colours in a random order. If I could set the frequency or approximate frequency of each, that would be even better, but not necessary.

    So, is there anything like a "=RAND(red,blue,white)" code? I know next to nothing about Excel functions right now, but I have looked into this and haven't found anything like that yet.

    I don't know if it's even possible, but it seems like it should be!

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Inserting words from a (predefined) set, randomly

    One method
    Attached Files Attached Files

  3. #3
    Ill-mannered User
    Join Date
    09-06-2012
    Location
    Probably NE USA
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: Inserting words from a (predefined) set, randomly

    Wow...it looks very good but I have no clue what's going on.

    How would I extend that down 313 cells?

    Or how would I add other colours?

    Please excuse my noobness!

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Inserting words from a (predefined) set, randomly

    Here is a very simple approach. In a cell, enter:

    =CHOOSE(RANDBETWEEN(1,5),"red","blue","green","white","black") and copy down

    This can easily be modified for as many colors as you desire.
    Gary's Student

  5. #5
    Ill-mannered User
    Join Date
    09-06-2012
    Location
    Probably NE USA
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: Inserting words from a (predefined) set, randomly

    Excellent! Exactly what I was looking for! Thanks!
    Last edited by Cutter; 09-08-2012 at 07:20 AM. Reason: Removed whole post quote

  6. #6
    Ill-mannered User
    Join Date
    09-06-2012
    Location
    Probably NE USA
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: Inserting words from a (predefined) set, randomly

    And thanks to Jason, too...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1