+ Reply to Thread
Results 1 to 12 of 12

Totalling/consolidating data

  1. #1
    Registered User
    Join Date
    07-18-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    25

    Totalling/consolidating data

    hi all,

    Hopefully a very easy question, I am trying to total together a list of paired/connected data sets and create a new sheet (that will update automatically, when the original sheet is updated)
    In the attached Excel, the product level sheet has two codes (see column A). I want to have the total quantities for these two codes, for the attributes in column J, in the same format in the Total sheet.
    I have manually summed up what the answer should be in the total sheet to illustrate
    Thanks, much appreciated
    Gareth
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Totalling/consolidating data

    Hi,

    On the Total sheet how do you get a closing stock in N5 of 1259549. Starting with a closing stock in M5 of 135206
    and demand in N3 of 10000 its should surely be 125206.

    A more fundamental question is are there always three rows on the Total Sheet for each pair of three rows on the Product level sheet, AND are they always in the same order so that the actual Material ID refs can be ignored. i.e. does row Total row 3 always sum rows Product rows 3 & 6, and row 4 sum 4&7..

    Then Row 6 sum rows 9 & 12, and row 7 rows 10 & 13.

    If so then holding a permanent formulae on the Total sheet would seem the simplest way.

    That said, and whilst it might not be a problem at the moment, you are committing the cardinal sin of merging cells. Most of us avoid them like the plagues since they cause too many problems.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-18-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    25

    Re: Totalling/consolidating data

    hi
    the closing stock in N5 was derived from totalling rows 3/4/5 in the product level sheet (its because of the closing stock only being added in to WK49 2020 that the result looks strange).
    I'm not precious about merged cells, so have unmerged them in the new attachment.

    Yes there are always three rows on the Total Sheet for each pair of three rows on the Product level sheet.
    However, they may not always be in the same order (why I need some help!)
    Thanks
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-18-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    25

    Re: Totalling/consolidating data

    hi Richard, (all) - is there anything more needed from my side to help answer this?

  5. #5
    Registered User
    Join Date
    07-18-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    25

    Re: Totalling/consolidating data

    is anyone able to help on this?

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Totalling/consolidating data

    Is the Material ID in the Product Level sheet column A always 5 digits and ID new in column B always 4 digits.


    If this is a much simplified example and doesn't represent the size of your actual data we often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    In which case please upload a file with some real data that. Be sure to include more than one set of paired values on the Product Level sheet and if there are IDs of different lengths that there are examples.
    Last edited by Richard Buttrey; 11-26-2020 at 10:06 AM.

  7. #7
    Registered User
    Join Date
    07-18-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    25

    Re: Totalling/consolidating data

    Hi
    thanks for coming back, yes it was a simplified version, attached now is a more detailed version of the data.
    I have shown in yellow cells in the total sheet the cells which I am looking to total.

    Logic/background is that I have one code which is moving to another code (see Columns A and B of Product Data sheet for examples). I then want to total these, showing the codes moving from what to what (columns A and B of the Total sheet) and sum up the values in the yellow cells. I have put formulas in for now so you see what I mean
    thanks
    Attached Files Attached Files

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Totalling/consolidating data

    ...and the important question is are the codes always the same length and always numerics? And if a helper column would help simplify formulae is that permitted?

  9. #9
    Registered User
    Join Date
    07-18-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    25

    Re: Totalling/consolidating data

    hi - code are always numerics and they either 7 or 8 characters in length. If a help column is necessary then yes thats fine

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Totalling/consolidating data

    If I understand correctly then the following may work.
    For the Demand rows: =SUMPRODUCT(('Product Level'!L5:L17)*(('Product Level'!$A5:$A17=$A5)+('Product Level'!$A5:$A17=$B5)))
    For the Production rows: =SUMPRODUCT(('Product Level'!L6:L18)*(('Product Level'!$A5:$A17=$A5)+('Product Level'!$A5:$A17=$B5)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Registered User
    Join Date
    07-18-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    25

    Re: Totalling/consolidating data

    thanks this seemed to work, appreciate your time

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Totalling/consolidating data

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Totalling Data that cannot be sorted numerically
    By oliverhj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2016, 11:44 AM
  2. Automatic totalling from list of Data
    By mjsmith82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-14-2015, 01:47 AM
  3. Totalling subsets of data within one workbook
    By Elapses in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2014, 10:34 PM
  4. Totalling data with autofilter on
    By Jessica.Bush in forum Excel General
    Replies: 3
    Last Post: 04-08-2009, 05:20 AM
  5. Totalling VLOOKUP Data with #N/A's
    By BankerSi in forum Excel General
    Replies: 4
    Last Post: 01-06-2009, 01:41 PM
  6. Totalling columns after using Autofilter on data
    By tomholden in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-31-2007, 09:25 AM
  7. Transfering and totalling corresponding data to other worksheets
    By Heatherbelle89 in forum Excel General
    Replies: 2
    Last Post: 07-12-2005, 03:57 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