+ Reply to Thread
Results 1 to 2 of 2

Choosing Random Cell

  1. #1
    Registered User
    Join Date
    02-25-2005
    Posts
    1

    Choosing Random Cell

    I have 100 rows x 3 collumns. The columns are min, mean, max. I want excel to choose a cell randomly from each row, so lets say the first one will be either min, mean, or max. next row same thing again.

    Is that possible? I'm really stuck on this, thanks

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Assuming that Columns A, B, and C contain your data, and that the first row contains your headers, try...

    D2, copied down:

    =INDEX(A2:C2,ROUND(RAND()*(3-1)+1,0))

    Hope this helps!

    Quote Originally Posted by ricta
    I have 100 rows x 3 collumns. The columns are min, mean, max. I want excel to choose a cell randomly from each row, so lets say the first one will be either min, mean, or max. next row same thing again.

    Is that possible? I'm really stuck on this, thanks

+ 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