+ Reply to Thread
Results 1 to 3 of 3

Small Macro

  1. #1
    Registered User
    Join Date
    02-14-2006
    Posts
    24

    Unhappy Small Macro

    I need help with a small program to arrange a data file:

    This is the data file:

    data
    A
    B
    C
    D
    data
    1
    2
    3
    4
    data
    D
    E
    F
    G
    data
    5
    6
    7
    8

    I need the data to be arrange as shown below:

    data A B C D
    data 1 2 3 4
    data D E F G
    data 5 6 7 8

    Thanks!

  2. #2
    Ardus Petus
    Guest

    Re: Small Macro

    This can be done with a formula.
    See example: http://cjoint.com/?dxsKNTriB0

    HTH
    --
    AP

    "tbobo" <[email protected]> a écrit dans le
    message de news:[email protected]...
    >
    > I need help with a small program to arrange a data file:
    >
    > This is the data file:
    >
    > data
    > A
    > B
    > C
    > D
    > data
    > 1
    > 2
    > 3
    > 4
    > data
    > D
    > E
    > F
    > G
    > data
    > 5
    > 6
    > 7
    > 8
    >
    > I need the data to be arrange as shown below:
    >
    > data A B C D
    > data 1 2 3 4
    > data D E F G
    > data 5 6 7 8
    >
    > Thanks!
    >
    >
    > --
    > tbobo
    > ------------------------------------------------------------------------
    > tbobo's Profile:

    http://www.excelforum.com/member.php...o&userid=31530
    > View this thread: http://www.excelforum.com/showthread...hreadid=525765
    >




  3. #3
    Gary''s Student
    Guest

    RE: Small Macro

    Macro not needed:

    If you data is in column A, then in B1 enter:

    =INDIRECT("A" & ROW()*5-6+COLUMN())

    Then copy B1 to C1 thru F1.
    Then copy B1 thru F1 down as far as you need.
    --
    Gary's Student


    "tbobo" wrote:

    >
    > I need help with a small program to arrange a data file:
    >
    > This is the data file:
    >
    > data
    > A
    > B
    > C
    > D
    > data
    > 1
    > 2
    > 3
    > 4
    > data
    > D
    > E
    > F
    > G
    > data
    > 5
    > 6
    > 7
    > 8
    >
    > I need the data to be arrange as shown below:
    >
    > data A B C D
    > data 1 2 3 4
    > data D E F G
    > data 5 6 7 8
    >
    > Thanks!
    >
    >
    > --
    > tbobo
    > ------------------------------------------------------------------------
    > tbobo's Profile: http://www.excelforum.com/member.php...o&userid=31530
    > View this thread: http://www.excelforum.com/showthread...hreadid=525765
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1