+ Reply to Thread
Results 1 to 3 of 3

show content of particular cell

Hybrid View

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    ahmedabad
    MS-Off Ver
    Excel 2003
    Posts
    2

    show content of particular cell

    Hi,

    I have 10000 data in my column A. i can genterate random number from 1 to 10000 through function "randbetween". Now i want to display the particular data which column a and row as per that random number. in short i want to display data of "column A row (generated random number) for lucky draw selection.

    please help me out
    Last edited by VBA Noob; 02-09-2009 at 09:14 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: show content of particular cell

    Assume the following:

    A1:A10000 contains data
    B1: =RANDBETWEEN(1,10000)
    C1: =INDEX(A1:A10000,B1,1)
    If you were only ever returning 1 column it would make as much sense to put the RANDBETWEEN in C1 instead of reference to B1 and remove B1 altogether.

  3. #3
    Registered User
    Join Date
    02-09-2009
    Location
    ahmedabad
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: show content of particular cell

    thnax bro. u made my work so easy !!

    thanx a ton !!




    Quote Originally Posted by DonkeyOte View Post
    Assume the following:

    A1:A10000 contains data
    B1: =RANDBETWEEN(1,10000)
    C1: =INDEX(A1:A10000,B1,1)
    If you were only ever returning 1 column it would make as much sense to put the RANDBETWEEN in C1 instead of reference to B1 and remove B1 altogether.

+ 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