T
Terry
This is directed primarily to Harlan Grove because he provided the
original formula a bit more than 5 years ago (and I see he's still
here), but I guess anybody can feel free to jump right in. Harlan's
original post is appended below at the end of my new request.
This a little long and for that I apologize. I just want to be sure
that I'm as clear as I can be to anyone who reads this.
The formula I need help with is one I've used for more than 5 years. It
randomly pairs two golfers **after** the scores are turned in and
posted. We call that a blind draw, but in this case it's done after
play rather than before.
Until now, the worksheet in question has consisted of 4 columns of 36
rows. I need to expand it to 4 columns of 48 rows and therein lies my
problem. For reasons I do not understand, the formulas in Cols C and D
simply will not copy into additional rows. They seem to be
self-limiting to 36 rows.
Here's the criteria: Col A (A1:A48) is merely a line number, 1 through
48.
Col B (B1:B48) contains this formula " =Rand()"
Col C contains this formula:
=IF(ROW()-ROW(TopLeft)<INT(COUNTA(Players)/2),INDEX(Players,MATCH(LARGE(OFFSET(Random,0,0,COUNTA(Players),1),ROW()-ROW(TopLeft)+1),OFFSET(Random,0,0,COUNTA(Players),1),0)),"")
and this is the formula in Col D:
=IF(ROW()-ROW(TopLeft)<INT(COUNTA(Players)/2),INDEX(Players,MATCH(SMALL(OFFSET(Random,0,0,COUNTA(Players),1),ROW()-ROW(TopLeft)+1),OFFSET(Random,0,0,COUNTA(Players),1),0)),"")
The result has been simply two columns of paired numbers from 1 through
36. I need those numbers to go up to 48.
It has worked very well over the years and takes me about 30 minutes to
do the data entry.
If necessary, I'll be glad to provide additional info. Thanks very much
in advance.
Terry
Here's the original posting from Harlan Grove, which I have saved lo,
these many years.
----- Original Message -----
From: "Harlan Grove" <[email protected]>
Newsgroups: microsoft.public.excel.worksheet.functions
Sent: Monday, May 05, 2003 1058
Subject: Re: Formula to Randomly Select Pairs
original formula a bit more than 5 years ago (and I see he's still
here), but I guess anybody can feel free to jump right in. Harlan's
original post is appended below at the end of my new request.
This a little long and for that I apologize. I just want to be sure
that I'm as clear as I can be to anyone who reads this.
The formula I need help with is one I've used for more than 5 years. It
randomly pairs two golfers **after** the scores are turned in and
posted. We call that a blind draw, but in this case it's done after
play rather than before.
Until now, the worksheet in question has consisted of 4 columns of 36
rows. I need to expand it to 4 columns of 48 rows and therein lies my
problem. For reasons I do not understand, the formulas in Cols C and D
simply will not copy into additional rows. They seem to be
self-limiting to 36 rows.
Here's the criteria: Col A (A1:A48) is merely a line number, 1 through
48.
Col B (B1:B48) contains this formula " =Rand()"
Col C contains this formula:
=IF(ROW()-ROW(TopLeft)<INT(COUNTA(Players)/2),INDEX(Players,MATCH(LARGE(OFFSET(Random,0,0,COUNTA(Players),1),ROW()-ROW(TopLeft)+1),OFFSET(Random,0,0,COUNTA(Players),1),0)),"")
and this is the formula in Col D:
=IF(ROW()-ROW(TopLeft)<INT(COUNTA(Players)/2),INDEX(Players,MATCH(SMALL(OFFSET(Random,0,0,COUNTA(Players),1),ROW()-ROW(TopLeft)+1),OFFSET(Random,0,0,COUNTA(Players),1),0)),"")
The result has been simply two columns of paired numbers from 1 through
36. I need those numbers to go up to 48.
It has worked very well over the years and takes me about 30 minutes to
do the data entry.
If necessary, I'll be glad to provide additional info. Thanks very much
in advance.
Terry
Here's the original posting from Harlan Grove, which I have saved lo,
these many years.
----- Original Message -----
From: "Harlan Grove" <[email protected]>
Newsgroups: microsoft.public.excel.worksheet.functions
Sent: Monday, May 05, 2003 1058
Subject: Re: Formula to Randomly Select Pairs