+ Reply to Thread
Results 1 to 2 of 2

Row Reference Using a Random Number

Hybrid View

  1. #1
    Registered User
    Join Date
    11-20-2007
    Location
    Chester, NJ
    Posts
    1

    Row Reference Using a Random Number

    I would like to be able to generate a random number in a cell and use that number in combination with a column. For example, in cell A1 use a random function to generate an INT(number) from 1 - 10 (no problem). Next I want to use that number in combination with a column letter and instruct Excel to move (goto) that location (cell) on the spreadsheet. I've tried syntax such as goto A&A1 and several other variations but can't get it to work.

    Any ideas?

    Thanks and regards,

    Jack Kent
    Chester, NJ 07930

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Jack:

    In Excel, you can't go to a cell per se using only Worksheet functions. You can reference a cell (specifically, you can pull the value from a random cell). If you really want to select a cell based on a random number, you have to use VBA. (See sample below):

    Post back if you have any questions.

    (P.S. I'm from NJ as well, Paramus, 07652. It's nice to see other [somewhat] local members on the board).
    Attached Files Attached Files

+ 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