Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default cell adressing

I would like to select each time different cell in same column using random
number. I generate the number but don't know how to implement it in the cell
address?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 180
Default cell adressing

If you want to choose from column A, in the row range of 1-10: =INDIRECT("A"
& INT(RAND()*10)+1). The '1' in the formula indicates the minumun row that
can be selected; the '10' indicates the number of rows among which to select
(so 10 rows from column A, starting at row 1 is the range A1:A10).

"surffrank" wrote:

I would like to select each time different cell in same column using random
number. I generate the number but don't know how to implement it in the cell
address?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default cell adressing

Use the following

Range("a" & ref).Select

where ref is your random number and "a" is your coloum reference

"surffrank" wrote:

I would like to select each time different cell in same column using random
number. I generate the number but don't know how to implement it in the cell
address?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default cell adressing

Perfect, thanks a lot


"bpeltzer" wrote:

If you want to choose from column A, in the row range of 1-10: =INDIRECT("A"
& INT(RAND()*10)+1). The '1' in the formula indicates the minumun row that
can be selected; the '10' indicates the number of rows among which to select
(so 10 rows from column A, starting at row 1 is the range A1:A10).

"surffrank" wrote:

I would like to select each time different cell in same column using random
number. I generate the number but don't know how to implement it in the cell
address?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options Yuvraj Excel Discussion (Misc queries) 0 June 29th 09 11:20 AM
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 [email protected] Excel Worksheet Functions 1 August 22nd 08 02:04 AM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 06:36 PM
Question about cell adressing Matt[_33_] Excel Programming 3 October 4th 05 10:26 PM
Adressing Jacek Excel Programming 1 June 30th 04 12:08 PM


All times are GMT +1. The time now is 03:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"