Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Same =rand() value in two adjacent cells in column

I want to use the rand() function to put the same random value in two
adjacent cells in a row and then a new random value in the next two cells,
etc. The appearance might typically look as follows: c1=.33784, c2=.33784,
c3=.11562, c4=.11562, c5=.01356, c6=.01356, c7=.88158, c8=.88158, etc up to
about cell c2000.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Same =rand() value in two adjacent cells in column

On Nov 18, 5:19*pm, PSRumbagh
wrote:
I want to use the rand() function to put the same
random value in two adjacent cells in a row and then
a new random value in the next two cells, etc.


In C1, put the formula =RAND(). In C2, put the formula =C1. Select
the two cells, and copy-and-paste or drag down through the rest of the
column.

up to about cell c2000.


In my experience, it is a drag :-) to copy/drag through so many
cells. The following works well for me. Select C1:C2 and copy (e.g,
ctrl-C). Enter C3:C2000 in the Name Box (near the upper left in my
set-up). That should select that range. Put the cursor in the
highlighted C3 and paste (e.g, ctrl-V).

HTH.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Same =rand() value in two adjacent cells in column

Try this...

C1: =RAND()
C2: =IF(MOD(ROW(),2),RAND(),C1)

Copy the formula in C2 down as far as needed.

--
Biff
Microsoft Excel MVP


"PSRumbagh" wrote in message
...
I want to use the rand() function to put the same random value in two
adjacent cells in a row and then a new random value in the next two cells,
etc. The appearance might typically look as follows: c1=.33784,
c2=.33784,
c3=.11562, c4=.11562, c5=.01356, c6=.01356, c7=.88158, c8=.88158, etc up
to
about cell c2000.



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
Sum only if cells are not blank in adjacent column arch0072 Excel Worksheet Functions 4 September 2nd 08 09:44 PM
Using CountIf with non-adjacent cells in same column RS Excel Discussion (Misc queries) 3 June 28th 07 05:45 PM
When data match, copy adjacent value to adjacent column slimbim Excel Worksheet Functions 2 November 8th 06 08:41 PM
summing values from adjacent column with refrence from adjacent column Pivotrend Excel Discussion (Misc queries) 6 March 4th 06 11:24 AM
Sum column if multiple criteria are met in adjacent cells GateKeeper Excel Worksheet Functions 5 September 4th 05 05:04 AM


All times are GMT +1. The time now is 04:28 AM.

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"