+ Reply to Thread
Results 1 to 8 of 8

Display text from random cell

  1. #1
    Registered User
    Join Date
    07-14-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Display text from random cell

    Hello there,
    I am trying to see if it is possible to make this happen in excel.

    For a study group, a teacher has suggested that we list out and cut up about 100 different topics, put them in a hat, and draw out three topics and then try to connect the ideas. That's a lot of writing... I was wondering If I enter all of the topic names sequentially into a column (say, B1-B100), could I write a function to display just the text of a random cell from the topic list as determined by the random number generator (in say, A1)?

    My only thought is to use RANDBETWEEN(bottom, top) to have it define the row of the cell... But I don't know how to tweak excel beyond the basics much. If this function is the correct one to incorporate, how would I get it to spit out a new cell value to pick another topic "out of the hat"?

    Any help would certainly be appreciated!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Is it possible.. To use Random number generator to display text from a random cel

    Sure, like this:
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Is it possible.. To use Random number generator to display text from a random cel

    Not sure about that, does this help:

    =INDEX(A1:E50;RANDBETWEEN(1;50);RANDBETWEEN(1;5))

    You can define some area (in example A1:E50) and randomly return some value from that table. But area must be defined.
    If you even take whole excel to be one area then you need to populate them all with some data (and that's lot of data )

  4. #4
    Registered User
    Join Date
    07-14-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Thumbs up Re: Is it possible.. To use Random number generator to display text from a random cel

    Quote Originally Posted by JBeaucaire View Post
    Sure, like this:
    Wow- thanks a lot!

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Is it possible.. To use Random number generator to display text from a random cel

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

  6. #6
    Registered User
    Join Date
    12-04-2009
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Is it possible.. To use Random number generator to display text from a random cel

    Quote Originally Posted by JBeaucaire View Post
    Sure, like this:
    This works fantastic!

    Quick question...
    Do you know how I would return a hyperlink that is associated with the text??

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Display text from random cell

    Hi talanh, welcome to the forum. Be sure to read through the Forum Rules so you can use and follow them effectively. For instance, posting a question of your own in someone else's thread is a no-no.

    Also, you haven't provided enough information to answer your question anyway. Go ahead and start a thread of your own. Click on GO ADVANCED and use the paperclip icon to upload a sample workbook demonstrating your data and a manual mockup of your desired results.

    New threads get the most attention, so you'll get better results that way.

  8. #8
    Registered User
    Join Date
    03-21-2014
    Location
    Eastleigh, England
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Display text from random cell

    Fantastic thanks, I've adapted the spreadsheet and got just what i want! Brilliant

+ 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