×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Excel question2

## Excel question

(OP)
I am making a raffel sheet. Each sheet has 50 numbers from 1 -1000 with no duplication. For a total of 1000 possible choices.

I would like Excel to generate 20 sheets of 50 random numbers no duplicates. Then on seperate sheet have excel tell me by 1-1000 which of the 20 pages I will find that number.

as an example

Page 1 has
3 5 501 652 75 on the first line

then on second sheet
it will list
#3 page 1
#5 Page 1
#75 Page 1
#501 Page 1
#652 Page 1
sheet 2 will be in numerical order. 1-1000 in first coloum and 1-20 to define which sheet.

I have Excel 2021, would be nice to be backwards compatile to office 2013 or Google sheets

AlohaRoss
www.needalohahelp.com
An Aloha POS 3rd Party support Solution company.

### RE: Excel question

Your requirements are pretty convoluted, IMO.
Simple Excel file as an example may be nice.

There is a build-in function in Excel: RANDBETWEEN that could come handy, and you can even play With No Duplicates for a start.

---- Andy

"Hmm...they have the internet on computers now"--Homer Simpson

### RE: Excel question

ONE SHEET. Usually, when you add sheets you needlessly complicate things.

Using the functions that Andy suggested all on one sheet in one table:

Random Number in Column A
No Duplicates in Column B
Group Number in Column C (1 to 20)

Make it a Structured Table and then you can FILTER on Group Number to see the 50 No Duplicates for that group.

Be sure that once you have generated Random Numbers and No Duplicates that you COPY n PASTE SPECIAL--VALUES to remove the formulas.

Skip,

Just traded in my OLD subtlety...
for a NUance!

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

### RE: Excel question

2
I would create helper 'separate' sheet with two column table:
- col. A, A2:A1001: sequential numbers 1-1000,
- col. B, B2:B1001: formula =RAND(),
and col. D:
- D2:D51: 1,
- D52:D101: 2
- D102:D151: 3,
- etc, till D1001 (20).

To distribute numbers between sheets, reference numbers from col. A:
- sheet 1: 'separate'!A2:A51
- sheet 2: 'separate'!A52:A101
- etc.

Now the clue, to (pseudo)randomize numbers in col. A, sort col. B in 'separate' sheet, references and col. D will not be sorted. Sheet 1-20 will contain random numbers, cols A and D have numbers (not sorted) and pages, where they can be found.

combo

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!