+ Reply to Thread
Results 1 to 6 of 6

Create a new table from two updating worksheets under various conditions

  1. #1
    Registered User
    Join Date
    01-22-2017
    Location
    Melbourne, AUS
    MS-Off Ver
    Office 2007
    Posts
    17

    Create a new table from two updating worksheets under various conditions

    Hi guys,

    I would like to create a new table based on data from two worksheets. The first one (RAW DATA, see attachment) includes values such as 00-001 as the final product and below this row its components (S1, D2,...) are listed. However, sometimes another not important value (which is different to the format xx-xxx) like 70450 is included which is not relevant for the FINAL table. The second workbook included worksheet related to a specific month (e.g. Month1 ). It shows how much of the final product like 00-001 was produced in Month 1.

    The aim is to create a new table, to show how much of the products 00-001,...... was produced and how much of their components were like S1, S6 (but not 70450) were used.

    I'm not sure whether a Pivot table could be used or whether some if-functions could be used. My previous attempts couldn't match all the data based on the conditions.

    I attached a sample workbook.

    I hope someone could help me.

    Cheers, Paul
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Create a new table from two updating worksheets under various conditions

    I see the sheet, but you lost me. The only thing I seem to be able to track is that 00-001 is on the Raw data sheet and also shows yup on the Month 1 Sheet. Where do the other numbers like B Code and B Number come from? Where does (kg) and N come from? and how does that add up to 180 on the Outcome sheet?

    Also do columns B & C have any meaning on the Raw Data Sheet?
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    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,252

    Re: Create a new table from two updating worksheets under various conditions

    the quantities come from the "Month 1" tab, column H.

    I hope the OP is not going have a Sheet per Month rather entering the Monthly data into a single data sheet with Month as a field (column),

    No idea on the components!

    The OP needs to think carefully about data collection and worry less about "reporting" it

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Create a new table from two updating worksheets under various conditions

    I agree, there's nothing like normalized data to make reporting easy. I'm an ex-DBA, so I tend to think this way.

    I'm still not seeing how to get from Raw Data to the monthly sheet.

  5. #5
    Registered User
    Join Date
    01-22-2017
    Location
    Melbourne, AUS
    MS-Off Ver
    Office 2007
    Posts
    17

    Re: Create a new table from two updating worksheets under various conditions

    Ok, it seems that my explanation was a bit confusing. However, I managed to change the RAW DATA spreadsheet so that the components such as S6 wont't be in the same array as the final product like 00-001. (See attachment)

    The aim is to create a final spreadsheet (FINAL) that sums up the values from the the values from the months. Please note that the sample is just an illustration and that my real spreadsheet includes 36 month, and 15000 rows (final products and its components).

    The final table should show the monthly amount of each final product and link that to the right components like 0.8 % of S6 in product 00-001 to show the monthly usage of the components as well. My attempt including =SUMIF('Month 1'!B1:G6,'Month 1'!G1,'Month 1'!G1:G6) is not sufficient as it does not create a new table.

    I hope this description is more clear.
    Attached Files Attached Files

  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,252

    Re: Create a new table from two updating worksheets under various conditions

    As pointed out earlier, you should avoid having separate tabs for each month. As you have a date in the "Month" tabs then it is quite easy to summarise by those dates.

    With large volumes of data there is a performance price to pay for continuing along the lines of monthly tabs.

+ 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. Using three worksheets to create one pivot table
    By NMDIVA in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-23-2017, 01:36 PM
  2. Create table for all worksheets
    By stephme55 in forum Excel General
    Replies: 1
    Last Post: 08-15-2016, 05:13 PM
  3. [SOLVED] Can you create self updating charts in macro enabled worksheets?
    By GarethT in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-25-2013, 04:28 AM
  4. create a pivot table from updating list of exact match
    By XLrookie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2013, 03:46 PM
  5. To create new worksheets from existing table ...
    By sylwester.cz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2010, 11:36 AM
  6. Create pivot table from mutiple worksheets
    By mmontel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-30-2006, 11:49 AM
  7. Create pivot table from 2 worksheets
    By MichaelKoh in forum Excel General
    Replies: 1
    Last Post: 11-01-2005, 04:09 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