Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Question on macros
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Edwin Gasparraj  
View profile  
 More options Jul 31 2000, 3:00 am
Newsgroups: comp.apps.spreadsheets
From: Edwin Gasparraj <edwin.gasparraj@remove_this.sdrc.com>
Date: 2000/07/31
Subject: Question on macros

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RUSS BARTOLI  
View profile  
 More options Aug 1 2000, 3:00 am
Newsgroups: comp.apps.spreadsheets
From: "RUSS BARTOLI" <russ.bart...@worldnet.att.net>
Date: 2000/08/01
Subject: Re: Question on macros

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rata  
View profile  
 More options Aug 1 2000, 3:00 am
Newsgroups: comp.apps.spreadsheets
From: "Rata" <p...@annon.clear.net.nz>
Date: 2000/08/01
Subject: Re: Question on macros
In Excel, you could do it this way.
Put your table in cells A1 to E5.
Put this formula in cell A7
   =ROW()-6
Put this formula in cell B7
   =OFFSET($B$2,(A7-1)/4,mod(A7-1,4))
Put this formula in cell C7
   =OFFSET($A$2,(A7-1)/4,0)
Put this formula in cell D7
   =OFFSET($B$1,0,MOD(A7-1,4))
Copy these 4 formulae (use Fill Down) down to row 22.  This should give the
numbers 1 to 16 in column A, the dates in B, gals in C and guys in D.
If you have a larger table, just adjust the formulae where it has a "4".

HTH

Peter Hewett

"Edwin Gasparraj" <edwin.gasparraj@remove_this.sdrc.com> wrote in message

news: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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Edwin Gasparraj  
View profile  
 More options Aug 1 2000, 3:00 am
Newsgroups: comp.apps.spreadsheets
From: Edwin Gasparraj <edwin.gasparraj@remove_thissdrc.com>
Date: 2000/08/01
Subject: Re: Question on macros
Thanks Russ and Rata..
Even though Iwould have liked Russ's sorted list,
I had trouble getting the column C formula to work..
Rata's was simpler even though it did not sort the dates.
Thanks to both of you.

-Edwin.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marshall Price  
View profile  
 More options Aug 8 2000, 3:00 am
Newsgroups: comp.apps.spreadsheets
From: d0213...@dc.seflin.org (Marshall Price)
Date: 2000/08/08
Subject: Re: Question on macros
Edwin Gasparraj wrote:

: Even though Iwould have liked Russ's sorted list,
: I had trouble getting the column C formula to work..
: Rata's was simpler even though it did not sort the dates.

  I'm not familiar with Excel, but couldn't you copy the dates to a
column, appending the original cell address to each, then sort, and then
use the cell addresses to generate the men's and women's columns?
  The procedure could easily be made independent of the size of the array.

--
Marshall Price of Miami, Florida
d0213...@dc.seflin.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »