+ Reply to Thread
Results 1 to 13 of 13

Combine worksheets into a master sheet

  1. #1
    Registered User
    Join Date
    08-04-2016
    Location
    Florida
    MS-Off Ver
    2010 professional
    Posts
    9

    Combine worksheets into a master sheet

    Morning,

    I am a newbie to Excel in many ways

    I have a question you can answer, I'm sure

    I am trying to 'automate' an excel file for project estimating
    I don't even know enough about Excel to know which function I should use

    HERE IS THE SCENARIO

    There are multiple sheets.
    Each sheet is used for a specific assembly of building components (boxes, pipe, wire, circuit breakers, etc.)
    Not every assembly will be needed for a given project, some will have a quantity value of zero
    IE: you may need only 2 types of boxes, but there are 10 different types listed.

    At the bottom of each sheet is a summary list using the SUMIF function
    I am using VLOOKUP to populate the remaining data columns from a Master Stock List for catalog #'s, etc.


    HERE IS THE QUESTION......... if anyone is inclined:

    I would like to find a way to copy values >0 from the individual summary lists, on different sheets
    I would like to copy those values to a separate sheet
    The goal is to create a list of materials to be ordered for that project

    What function should I be using?


    BACKGROUND:
    I have been doing this manually
    By automating this function, it eliminates the 'ID-10-T' factor (commonly known as human error)


    anyone willing to help?
    Attached Files Attached Files
    Last edited by smbsvcs; 08-04-2016 at 12:19 PM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,491

    Re: Combine worksheets into a master sheet

    Please post a file.

  3. #3
    Registered User
    Join Date
    08-04-2016
    Location
    Florida
    MS-Off Ver
    2010 professional
    Posts
    9

    Re: Combine worksheets into a master sheet

    File Posted

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,491

    Re: Combine worksheets into a master sheet

    As there are multiple sheets I suspect that a VBA (macro) solution will be needed.

    What is the maximum number of sheets? Will the file always have the maximum number of sheets.

    As I understand it, if there are 10 sheets, data is pulled from all sheets where quantity > 0 and we sum quantities for common parts.

  5. #5
    Registered User
    Join Date
    08-04-2016
    Location
    Florida
    MS-Off Ver
    2010 professional
    Posts
    9

    Re: Combine worksheets into a master sheet

    Thank you for responding,

    There could be a fixed number of sheets, currently there are 16

    Is there a 'magic number' of sheets that would be desirable for this functionality?


    and, you are correct "Data is pulled from all sheets where quantity > 0 and sum quantities for common parts


    (thanks again)

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,491

    Re: Combine worksheets into a master sheet

    No magic number but once to get past 3/4 sheets the formulae become unmanageable,if not impossible: with that number of sheets you will need a VBA solution (to loop through all the sheets).

    You may want to consider posting this on the VBA/MACRO forum but if you do please ensure you cross-reference each forum posting so people do not spend time on a solution if one has already been found (or is in progress).

  7. #7
    Registered User
    Join Date
    08-04-2016
    Location
    Florida
    MS-Off Ver
    2010 professional
    Posts
    9

    Re: Combine worksheets into a master sheet

    thank you,

    should I mark this as 'SOLVED' in this forum and re-post in the correct thread to make it easier?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,491

    Re: Combine worksheets into a master sheet

    I have a VBA solution .. will post shortly ....

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,491

    Re: Combine worksheets into a master sheet

    VBA code

    Please Login or Register  to view this content.
    The attached has the results. Click RUN button on "Composite Material Take Off".

    You will get message box with tab name (Leave for now): just click OK when they appear.

    I found on the first sheet that a part was listed twice so I removed one and just added quantity to first.

    Code currently does not check for duplicate entries in whatever is the first sheet: could be changed to do so.

    Give it a trial and let me know how you get on.
    Attached Files Attached Files
    Last edited by JohnTopley; 08-04-2016 at 02:53 PM.

  10. #10
    Registered User
    Join Date
    08-04-2016
    Location
    Florida
    MS-Off Ver
    2010 professional
    Posts
    9

    Re: Combine worksheets into a master sheet

    Thank you very much

    You put a lot of work into that

    so a quick question of a larger scope if you are inclined

    Should I be doing this with a Database instead?

    Am I barking up the wrong tree in the first place?

    Thank you for your time
    It is greatly appreciated

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,491

    Re: Combine worksheets into a master sheet

    By database do you mean something like Access? I don't know enough about Access (or any other DB) to say whether or not it is the better option.

    It is difficult to advise as I (we) don't have sufficient knowledge of your business.

    Equally, perhaps you could just have one "materials" sheet with a column(s) to identify the category i.e, Receptacles, Switches etc.

    In your sample file there are many common materials (was this just done as an easy way to get the sample data?).

    THE VBA macro should work OK with any number of worksheets so give it a good "Volume" test with as many sheets as is practical.
    Last edited by JohnTopley; 08-04-2016 at 04:30 PM.

  12. #12
    Registered User
    Join Date
    08-04-2016
    Location
    Florida
    MS-Off Ver
    2010 professional
    Posts
    9

    Re: Combine worksheets into a master sheet

    You have been VERY helpful!!

    I understand the constraints of the last response......a reasonable approach on your part

    The code works just fine.

    I truly appreciate your kindness and assistance.

    thank you so much

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,491

    Re: Combine worksheets into a master sheet

    Thank you for the feedback,

    If your problem has been solved, can you mark the thread as such ("Thread Tools" at top of first post).

    Equally, you may want to keep it "open" until you have done further testing.

+ 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. Replies: 4
    Last Post: 07-31-2016, 04:17 PM
  2. combine number of worksheets with text into one master sheet
    By sonyaw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2014, 10:25 PM
  3. Required Macros for combine worksheets in to master with defined range
    By d.r.damo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-21-2014, 08:12 AM
  4. [SOLVED] combine multi workbooks into one master workbook but I want to combine only sheet 3
    By Goodstart14 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-31-2013, 12:22 AM
  5. How to automatically combine data from multiple worksheets into a master worksheet
    By BeardedLuminary in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2013, 10:57 AM
  6. Macro to combine multiple worksheets into a Master file
    By hazte22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2012, 04:28 AM
  7. Combine (3) Workbooks to Master Sheet
    By ssteines in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2011, 04:00 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