Hi - Does anyone happen to know of a formula or macro that could bacially duplicate rows based on a cell value? The situation is, I have two columns of data; column A is a name and column B is the number of sweepstakes entries they should receive (1-5). These people will be entered into a sweepstakes and will receive muliple entries based on column B (giving them a better chance to win). When pulling random winners, we usually use the formula =RAND and then sort that list from biggest to smallest, giving the biggest number the prize. Since we have to multiply the people's chances based on column B, is there a better way to do this?
I was thinking about simply duplicating the rows based on coulmn B and then =RAND like we usually do, but I'm not sure how to accomplish this.
As an example, this:
Adam 1
Barry 3
Charles 0
David 2
Would be this:
Adam
Barry
Barry
Barry
David
David
And then we would randomize, picking the winner.
Any thoughts?
I was thinking about simply duplicating the rows based on coulmn B and then =RAND like we usually do, but I'm not sure how to accomplish this.
As an example, this:
Adam 1
Barry 3
Charles 0
David 2
Would be this:
Adam
Barry
Barry
Barry
David
David
And then we would randomize, picking the winner.
Any thoughts?