New Contributor

# Duplication cell value

I work in a school and am putting together a new reward system. The pupils get points based on numerous factors which gives them a score. Every 7/8 weeks, we're going to have a draw to select a winner, but I want their total points to dictate how many entries they receive to that draw.

I have their names in Column A and column B states their number of entries.

For the online random name selector, I need to be able to duplicate their names based on the value of column B so Pupil A might be listed 32 times, but Pupil F only 5...

I could do this manually... but each of our year groups have 200 pupils so it would take ages!

4 Replies

# Re: Duplication cell value

Would it be possible for you to post a file that resembles your actual, just replacing any real names with those of Disney characters (or Star Wars, or....you name it)....   It would make it a lot easier for people here to help you, and be working with your actual layout.

Also please, if you could, clarify how you're using this. From what you've said, it sounds as if there will only be one name selected (if that's not the case, please clarify); that one person might in fact only have her or his name in the "pot" 5 times, somebody else 40 or more times....so there's a greater probability of selecting the person with 40 entries, but the one with 5 still has a chance. If that's not correct, please clarify.

# Re: Duplication cell value

@mathetes Yes, you're spot on. They're all equal - but some are more equal than others. They'll be three winners in effect, but I'd just run the selector three times (or re-run if the same person was selected twice)

Each person would go into the pot multiple times depending on how many entries they had earned. In the full list, the greatest goes in 29 times, the least goes in twice.

# Re: Duplication cell value

Here's a quick and dirty--but I think effective in achieving the desired result. I just multiplied the number of entries by a random fraction. In test runs (activated by the F9 key) it randomly picked people down on the list, but did a higher percentage of those near the top, which is what you'd expect.

The key formula just matches the max (highest) product of entries times the random number...and gives the name associated with it.

# Re: Duplication cell value

@mathetes so straightforward! (once you know how...)

I've never used RAND before so thankyou. Just to set it up with the full list and draw my winners...