LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Max
 
Posts: n/a
Default I WANT TO ADD A TWO RANDOM CHARACTER SEQUENCE TO A SET OF ROWS

If there should be no duplicates generated
(i.e. all 26 random possibles: AA to AZ must be unique)
here's one set-up to try

Using say, the rightmost 2 columns, IU & IV
Put in IU1: =CHAR(ROW()+64)
Put in IV1: =RAND()
Select IU1:IV1, copy down to IV26

Then within the same sheet:

To generate down a column
we could put in say A1:
="A"&INDEX(IU:IU,RANK(IV1,$IV$1:$IV$26))
and copy A1 down as many rows as required (up to the max of 26 rows)

Or, to generate across any row, we could put in say, A28:
="A"&INDEX($IU:$IU,RANK(OFFSET($IV$1,COLUMN(A1)-1,),$IV$1:$IV$26)
and copy A28 across as many cols as required (up to the max of 26 cols)

Pressing F9 will regenerate afresh
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"XLSUSER" wrote in message
...
I WANT TO ADD TWO RANDOM CHARACTERS TO ROWS IN A TABLE THAT ARE UNIQUE

SUCH
AS AB, AC, AD, AF, ETC..

CAN THIS BE DONE IN EXCEL?



 
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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
VBA "Rnd" Function: Truly Random? TheRobsterUK Excel Discussion (Misc queries) 2 September 27th 05 04:50 AM
GENERATE RANDOM NUMBERS BUT EXCLUDE A NUMBER IN THE SEQUENCE Tracker Excel Discussion (Misc queries) 6 August 5th 05 02:49 AM
Count rows not in sequence kamill Excel Worksheet Functions 6 May 12th 05 01:32 PM
Adding Rows to Master Sheet Excel Newbie New Users to Excel 1 December 23rd 04 10:56 PM


All times are GMT +1. The time now is 03:03 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"