×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • 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.

Students Click Here

Excel question
2

Excel question

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.
We answer when they don't
reddit : rossabout

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

aloha, think about it.

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,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"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:
- A1:B1: headers,
- 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.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


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:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close