+ Reply to Thread
Results 1 to 9 of 9

Macro to consolidate data from multiple data from worksheets into on worksheet

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    9

    Macro to consolidate data from multiple data from worksheets into on worksheet

    I have a number of worksheets (n=202) which contain two columns of data, the first column is integers of density and the second a pixel count from an image. I would like to consolidate these columns into one single worksheet by column, but only including the integers in the first column and the pixel counts with the corresponding worksheet number as a header as the continuous following columns.

    I have an add in for excel which will combine worksheets (kutools) but this combines the data rows so that data is on top of one another and I need it as columns so I can plot the results.

    I have attached an example of the simple data file containing an example of the first ten worksheets if that helps
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to consolidate data from multiple data from worksheets into on worksheet

    Your request is not clear. Try it and will adjust it.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-25-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Macro to consolidate data from multiple data from worksheets into on worksheet

    Sorry if it's not too clear. That's pretty much perfect, although I don't need the integer count in every other column, only in the first column.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to consolidate data from multiple data from worksheets into on worksheet

    See if this is better.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-25-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Macro to consolidate data from multiple data from worksheets into on worksheet

    No sorry, it's the other way around. The negative values are the integers for the density range. so I need this in the first column and the rest of the data in the following columns.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to consolidate data from multiple data from worksheets into on worksheet

    I have excluded all column B. I do not know which column B of all the sheets should be consolidated.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-25-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Macro to consolidate data from multiple data from worksheets into on worksheet

    Column B in each worksheet is the data that I need consolidated and column A in each worksheet is the value of that data. So I only need column A copied once into the master (as the first column) and the rest of the column B's from each worksheet in order. Hope this is clearer now.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to consolidate data from multiple data from worksheets into on worksheet

    Okay! I got it right.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-25-2013
    Location
    Edinburgh
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Macro to consolidate data from multiple data from worksheets into on worksheet

    Great, works perfectly. Thank you, you were very patient.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. consolidate data from multiple files/worksheets when data in variable location
    By Aaron_Tram in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-21-2013, 12:49 PM
  2. Macro to Consolidate Data from Multiple Worksheets
    By avanbuskirk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2012, 02:23 AM
  3. [SOLVED] How to consolidate data from multiple worksheets.
    By SAR in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 09:05 PM
  4. How to consolidate data from multiple worksheets.
    By SAR in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  5. [SOLVED] How to consolidate data from multiple worksheets.
    By SAR in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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