+ Reply to Thread
Results 1 to 6 of 6

Automatic cutting and pasting

  1. #1
    Registered User
    Join Date
    12-26-2007
    Posts
    3

    Automatic cutting and pasting

    Please see attachment
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-26-2007
    Posts
    3

    Automatic Cutting and Paste

    Please see attachment.

    Thanks!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-26-2007
    Posts
    3

    Automatic Cutting and Pasting

    See attachment below.

    Thanks
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-21-2007
    Location
    Szeged, HUNGARY
    MS-Off Ver
    2013
    Posts
    43

    Re: Automatic cutting and pasting

    Hi all,

    My method in fact is not cut and paste, but the use of a single formula.

    I suppose Sheet1 contains the original data as described in the Word document.

    In a different sheet say Sheet2 into A1 I put the following formula:

    =INDIRECT(ADDRESS(5*(ROW()-1)+1+ROUNDDOWN((COLUMN()-1)/8,0),MOD((COLUMN()-1),8)+1,,,"Sheet1"))

    and copied it 3x8 columns to the right

    and down a few lines.


    I think it works.


    Kaus

  5. #5
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    gdelreal99a

    Please read the forum rules

    When you signed up to this site you agreed not to post the same question to multiple forums

    The duplicate thread you posted in the Excel Miscellaneous Forum has been deleted

    A thread with the rules is available at the top of each forum
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello gdelreal99a,

    If you want to the data to be compacted on the same sheet here is a macro that will do that. It is also flexible and easier to maintain than lots of copied formulas. You can specify how many blank rows you have between data groups, the starting row, and the starting column. The macro is currently set to match your post: Starting row = 1, Starting column = "A", Rows in a group = 3, and Blank rows = 2. This can be changed in the code by changing the values marked in blue. If you don't know how to install a macro, the instructions are below.
    Macro Code
    Please Login or Register  to view this content.
    Adding the Macro
    1. Copy the macro above pressing the keys CTRL+C
    2. Open your workbook
    3. Press the keys ALT+F11 to open the Visual Basic Editor
    4. Press the keys ALT+I to activate the Insert menu
    5. Press M to insert a Standard Module
    6. Paste the code by pressing the keys CTRL+V
    7. Make any custom changes to the macro if needed at this time
    8. Save the Macro by pressing the keys CTRL+S
    9. Press the keys ALT+Q to exit the Editor, and return to Excel

    To Run the Macro...
    To run the macro from Excel, open the workbook, and press ALT+F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.

    Sincerely,
    Leith Ross

+ 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