+ Reply to Thread
Results 1 to 7 of 7

Consolidating multiple worksheets into one

  1. #1
    Registered User
    Join Date
    10-30-2008
    Location
    London
    Posts
    4

    Consolidating multiple worksheets into one

    Hi,

    I'm sorry if this a basic problem.

    I have 3 worksheets with different data. All have the same column headings. I would like to merge them into one sheet with the same columns headings.

    The number of rows of data in each sheet will vary on a daily basis.

    Thanks in advance for your help!

    Matt

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    you mean you want to glue the new data on the bottom of the old?
    Automatically?

  3. #3
    Registered User
    Join Date
    10-30-2008
    Location
    London
    Posts
    4
    No, I want to simply reference the data from the 3 worksheets together on one worksheet.

    Here is an example for clarity:

    Sheet 1 = 4 rows
    Sheet 2 = 10 rows
    Sheet 3 = 6 rows

    The master sheet should therefore have 20 rows of data referenced from the 3 sheets.

    Sheets 1 to 3 may then change data the following day so

    Sheet 1 = 3 rows
    Sheet 2 = 5 rows
    Sheet 3 = 3 rows

    The master sheet should therefore have 11 rows of data referenced from the 3 sheets.

    Thanks Charlie

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    I think I'd need to use code to do that - are you comfortable with VBA or were you hoping for a formulaic solution?

  5. #5
    Registered User
    Join Date
    10-30-2008
    Location
    London
    Posts
    4
    Really?! It seemed like such a simple task!

    I don't mind VBA code. But the most I have done is minor editing of macros.

    Thinking about it now, maybe I could just use a marcro to select the data then copy it?

    Do macros record things like CTRL+Down to find hte end of selection of data?

  6. #6
    Forum Contributor
    Join Date
    07-24-2008
    Location
    Athome
    MS-Off Ver
    Excel 2013
    Posts
    127
    Macros can record Ctrl+End.

    Alternatively you could have your Master sheet to read in three different sections, then use a Macro to copy paste.
    Eg.
    Master sheet lines 1 - 200 = Sheet1 lines 1 - 200
    Master sheet lines 201 - 400 = Sheet2 lines 1 - 200
    Master sheet lines 401 - 600 = Sheet3 lines 1 - 200

    If 200 lines are not enough, then you can simply use a bigger interval.
    Then have your Macro copy-paste the info into another sheet and sort the info in descending order. The blanks will simply show at the bottom as NIL items. The data values will all be listed above. This might be a simpler macro to record.

  7. #7
    Registered User
    Join Date
    10-30-2008
    Location
    London
    Posts
    4
    Ah, that's a great idea. The sort will do the job nicely.

    Thanks Rasonline. I will set that up and see how it goes.

+ 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