+ Reply to Thread
Results 1 to 5 of 5

Combining multiple sheets

  1. #1
    Registered User
    Join Date
    03-08-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    1

    Combining multiple sheets

    Hi I have a multiple sheet excel file each sheet have rows of names that begin with same letter of alphabet e.g. sheet1 has rows of names that begin with A and sheet2 has rows of names beginning with B and so on. I'd like to automate combining all sheets together in one sheet in alphabetical order and output in a separate sheet, and also have that separate sheet updated whenever any names are added.

    Is there a quick and efficient way of doing this rather than manually copying. I am hoping that there is something in the tools or a function that can do this all within excel. No figures to be updated whatever so its just 1 row 1 column on each sheet. There is a second column but is not required for the combined sheet

    Thanks

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Combining multiple sheets

    First, I have to ask, is there any good reason why you need to have your data spread across 26 worksheets? Can't you consolidate it into one worksheet once and for all? It would make it much more maintainable!

    If you must stay with your current structure then here is one possible way to automate the consolidation.

    The following description is with reference to the attached workbook.

    I have introduced a "helper" worksheet. Col-A is a list of your worksheet names. I have used "a", "b", "c", and so on. Change these names to reflect your real workbook.

    Col-B simply counts the number of entries (names) on each worksheet. In B3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Col-C is a cumulative count of the names. In C3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Col-D is unused in the final version. It has been merged into the "Consolidated" worksheet formula. I have retained it here as it may help debug if extra header rows or other changes are made to the layout that may break the formulas. It has a row for every name and provides an index back to the source worksheet for each name. In D3 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The "Consolidated" worksheet is the required output worksheet. It lists all the names from all 26 worksheets.
    In A2 and copied down until you see blank rows
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The attached workbook provides 3 sample worksheets for A, B and C named "a", "b", "c". To adapt this workbook to your needs:
    1) Add further worksheets for D-Z.
    2) If you use different worksheet names then update helper!A:A accordingly.
    3) Populate each worksheet
    4) Make sure that the formula in Consolidated!A:A is copied down far enough to cover all names.

    That's it!

    Hope this helps - let me know.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-13-2008
    Location
    Liverpool
    MS-Off Ver
    2019 pro
    Posts
    17

    Re: Combining multiple sheets

    Hi

    Im trying to get the list for each page MP's MEP's and Lords) to populate the combined list with one starting where the last one finishes.
    Some of these lists have over 800 entires so I've just done a few rows in each one.

    Regards

    Mark
    Attached Files Attached Files

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Combining multiple sheets

    Hi Mark,

    Is this really your first post, after joining the Forum in 2008 ?

    It looks like you have just tagged on your query to an existing thread, rather than start a new thread yourself. This is known as "hijacking" a thread, and is against the rules (view these at the top of the screen).

    Please start your own (new) thread.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    05-13-2008
    Location
    Liverpool
    MS-Off Ver
    2019 pro
    Posts
    17

    Re: Combining multiple sheets

    Thanks Pete

+ 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. [SOLVED] Combining multiple sheets into one VBA
    By christian2016 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-28-2016, 01:03 AM
  2. Combining Data from Multiple .xlsx Files with Multiple Sheets
    By jeannelee94 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2015, 10:03 AM
  3. [SOLVED] Combining multiple sheets in to one.
    By Armand0 in forum Excel General
    Replies: 5
    Last Post: 10-28-2013, 06:31 AM
  4. [SOLVED] combining multiple sheets
    By Patio in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2006, 08:25 PM
  5. [SOLVED] Combining multiple sheets into one
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 03-08-2006, 08:06 PM
  6. Combining Data from multiple sheets...
    By FogCat in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2006, 11:35 AM
  7. [SOLVED] Combining multiple sheets onto one
    By Steve Barber in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2005, 03:06 PM

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