A challenging problem.
Here's my result:
GAL
GUY
01-Jan-1999
Angela
Aaron
1
17-Jan-1999
Beth
Carson
2
28-Jan-1999
Daphne
Aaron
3
03-Feb-1999
Angela
Bart
4
05-Mar-1999
Angela
Dan
5
15-Apr-1999
Daphne
Dan
6
17-Apr-1999
Daphne
Bart
7
23-Apr-1999
Angela
Carson
8
30-Apr-1999
Beth
Dan
9
06-May-1999
Carol
Aaron
10
24-May-1999
Daphne
Carson
11
06-Aug-1999
Carol
Carson
12
21-Aug-1999
Beth
Bart
13
24-Oct-1999
Beth
Aaron
14
17-Nov-1999
Carol
Bart
15
09-Dec-1999
Carol
Dan
16
I placed your original table in A1 (blank cell).
The range name TBL is the date grid without headers.
I first filled numbers down the 4th column.
Column A formula:
@SMALL($TBL,D8) in A8 copied down
Column B formula in B8 copied down:
@INDEX($A$2..$A$5,0,@MOD(@MATCH($A8,$TBL,0),4))
(A2..A5 are the gals names in your table)
Column C formula in C8 copied down:
@INDEX($B$1..$E$1,@QUOTIENT(@MATCH($A8,$TBL,0),4),0)
(B1..E1 are the guys names in your table).
phew!
Edwin Gasparraj wrote in message <3985E218.66D3183E@remove_this.sdrc.com>...
I have the following table
Aaron Bart Carson Dan
Angela 01/01/99 02/03/99 04/23/99 03/05/99
Beth 10/24/99 08/21/99 01/17/99 04/30/99
Carol 05/06/99 11/17/99 08/06/99 12/09/99
Daphne 01/28/99 04/17/99 05/24/99 04/15/99
What I want to do is to create another table with
three columns. The dates in the first one. The
corresponding girls name in the second and the
corresponding guys name in the third.
Is there a macro which I can write which would do this.
Please respond ASAP. Thank you.
-Edwin.