Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Copy and Paste x amount of times.

Hi,

I've ran a competition and need to "pick the winners out of a hat". If it was one entry per name then I would have used a RANDBETWEEN to select my 10 random numbers and that would be that, however there are multiple entries per person.

The only problem though is that the number of entries each person has is summed up with the adjacent column.

For example;

Column A contains number of entries (summed up) (number x)
Column B contains the persons name

A, B,
1012, Josh,
134, Greg,
874, Tom,

and so on....

What I need to do then is pick 10 random winners but taking the amount of entries into consideration.

I wanted to copy and paste each name the required amount of times but that's obviously very time consuming as there are 361 entrants with over 7,000 entries between them.


Does anyone have a possible solution to this or know of any VBA coding that may help me with this?

Perhaps something that will auto copy and paste each name x amount of times then group them all into 1 column?

Thanks in advance :)

Garry
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
copy and paste 2900 times macro DLB Excel Discussion (Misc queries) 2 May 15th 09 07:20 PM
Copy/Paste Macro using large amount of Data Nikki Excel Discussion (Misc queries) 2 December 10th 08 03:12 PM
Copy once and paste five times Zuzeppeddu Excel Programming 2 September 3rd 07 01:15 PM
VBA to -0- an amount during a Copy/Paste of a range of cells Dennis Excel Programming 1 December 23rd 06 05:24 PM
Select cells copy/paste and repeat x times Mike Hann Excel Programming 5 August 5th 06 01:55 PM


All times are GMT +1. The time now is 10:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"