+ Reply to Thread
Results 1 to 7 of 7

Random Cell Function

  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    Random Cell Function

    Hello,

    Is there any built-in function to display a random cell in another cell? for example, i have data in cells A1 to B12, and would like that B13 display any number from that array.

    If not, would you have any suggestion on how to create this?

    Many thanks,

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =RANDBETWEEN(MIN(A1:B12),MAX(A1:B12)) - Press F9 to re-select
    Last edited by oldchippy; 02-13-2007 at 10:39 AM.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    Quote Originally Posted by oldchippy
    Try this,

    =RANDBETWEEN(MIN(A1:B12),MAX(A1:B12)) - Press F9 to re-select
    I see!
    But what if the values are in A1:B12 are... text?

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Here's a link here that may help?

    http://exceltips.vitalnews.com/Pages...dom_Names.html
    Last edited by oldchippy; 02-13-2007 at 11:14 AM.

  5. #5
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    They are text unique:

    A1 Apple
    A2 Pear
    A3 Banana

    etc.

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Sorry we posted at the same time - have a look at the link above

  7. #7
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    Quote Originally Posted by oldchippy
    Sorry we posted at the same time - have a look at the link above
    Excellent, this will do. Thank you!

+ 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