+ Reply to Thread
Results 1 to 3 of 3

Automating data consolidation

  1. #1
    Registered User
    Join Date
    07-01-2006
    Posts
    40

    Automating data consolidation

    Hello,
    How do I automate the following repetitive procedure? This would be done on a group of cells manually selected among other content.
    The data is organized in rows of 2 (ie. as multiple two-line entries) but it needs to be consolidated into 1 row using this method here:

    xcel.jpg
    ...this is the visual

    1. Second line of each entry, column B: value needs to move to first line, column C
    2. Columns D and E will have their values staggered; sometimes D will have value in first line and E in second (case 1), other times D will have its value in line two and E in line one (case 2). In case 1: first line, column A should receive value "X", in case 2: first line, column A should receive value "Y". Values in columns D and E do not need to be modified themselves.
    3. Second line of each entry, column F: value needs to move to first line, column F
    4. Second line of each entry needs to be deleted altogether

    Any help is appreciated. Thanks!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Automating data consolidation

    Why upload a jpg when an excel file will be better?

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Automating data consolidation

    Try this macro


    Please Login or Register  to view this content.

+ 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