+ Reply to Thread
Results 1 to 14 of 14

Percentage of Total sum

  1. #1
    Registered User
    Join Date
    09-22-2016
    Location
    Sweden
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    7

    Question Percentage of Total sum

    Hi community
    I have a table with the categories: Year, Month, Scrap number, Scrap category and Number of products produced. I want to know how many of the total produced products that are scrap products for each month and in which category.

    By the use of a pivot table I sum up the number of scrap parts in every category for each month and I also get the Total number of produced products for each month but what I don't know how to do is how I can get the percentage of scrap product for each category in regards to Total products produced.
    (See attached excel document)

    Thank you for your help!

    Kind regards
    Toobor
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Percentage of Total sum

    Hi Toobor,

    Rather than a pivot table you could use the SUMIF function to create a simple table (see attached).

    Snook
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Percentage of Total sum

    Amended to incorporate the month using the SUMIFS function.

    Hope this helps.

    Snook
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-22-2016
    Location
    Sweden
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    7

    Re: Percentage of Total sum

    Thank you The_Snook for your quick answer.

    The problem with your solution is that I also want to show the result per year and month. It is possible to add another SUMIF which inspects the year and month but then the equation gets pretty complicated. I also like to be able to update the table with new data and new dates in the future without the need of doing any manually work which then can be a problem when a new year starts.

  5. #5
    Registered User
    Join Date
    09-22-2016
    Location
    Sweden
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    7

    Re: Percentage of Total sum

    (I didn't see the second reply you posted before I answered ) It is a good solution. Thank you for your help!
    Last edited by Toobor; 09-22-2016 at 05:43 AM.

  6. #6
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Percentage of Total sum

    You could add the year as an additional criteria in the SUMIFS formula (see attached).

    Snook
    Attached Files Attached Files

  7. #7
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Percentage of Total sum

    Hi,

    I believe you might achieve your desired result through the use of a calculated field. I attach a version of your workbook with the relevant calculations.
    Attached Files Attached Files
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  8. #8
    Registered User
    Join Date
    09-22-2016
    Location
    Sweden
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    7

    Re: Percentage of Total sum

    I tried that too but in that way I don't get the percentage in regards to the total products produced. Instead the percentages for each category is calculated with the number of products produced which has scrap products with that specific category.

  9. #9
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Percentage of Total sum

    Could you perhaps provide an example showing the results you hope to see. It may yet be possible within the pivot table. To my eye, the results with the calculated field mirror the results in the other solutions.

  10. #10
    Registered User
    Join Date
    09-22-2016
    Location
    Sweden
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    7

    Re: Percentage of Total sum

    For example if the table for one date is:
    Year Month Scrap_num Scrap_category Prod_produced
    2015 _____ jan _____ 2 _____ A _____ 10
    2015 _____ jan _____ 5 _____ B _____ 12
    2015_____ jan _____ 0 _____ - _____ 5

    The numbers i want to calculate are:
    Num_of_Scrap A / Total_prod_produced --> 2 / 27 = 7,4%
    Num_of_Scrap B / Total_prod_produced --> 5 / 27 = 18,5%

    I think your solution are calculating the following:
    Num_of_Scrap A / prod_produced_which has scrap products with category A) --> 2 / 10 = 20%
    Num_of_Scrap B / prod_produced_which has scrap products with category B) --> 5 /12 = 42%

    Perhaps I misinterpret your solution?

    It is difficult to explain, I hope this makes it clearer :P
    Last edited by Toobor; 09-22-2016 at 08:13 AM.

  11. #11
    Registered User
    Join Date
    09-22-2016
    Location
    Sweden
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    7

    Re: Percentage of Total sum

    You are right that your solution gives the same result as The_Snook solution. However in The_Snook solution I can easily change "Total produced" to sum up all produced products and not only the ones that has specific scrap category.
    Last edited by Toobor; 09-22-2016 at 08:28 AM.

  12. #12
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Percentage of Total sum

    Which totals do you wish to use? The overall grand total, or the total for a specific month, or a specific category?

  13. #13
    Registered User
    Join Date
    09-22-2016
    Location
    Sweden
    MS-Off Ver
    Microsoft Office Professional Plus 2010
    Posts
    7

    Re: Percentage of Total sum

    total for specific month

  14. #14
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Percentage of Total sum

    I believe you would need to use Power Pivot to produce that within a pivot table.

+ 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. PivotTable sub-total/grand total percentage issue
    By Jess0121 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-19-2016, 05:59 PM
  2. [SOLVED] Need Percentage of Total
    By weaverswonders6 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-13-2015, 03:48 PM
  3. Getting sum total from percentage instead of percentage amount
    By Bluedemon909 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2013, 08:56 AM
  4. [SOLVED] Formula to total and - percentage
    By jodieduncan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2013, 09:58 AM
  5. Trying to get the total percentage
    By YGAM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2009, 04:33 AM
  6. changing one percentage, but total must be 100
    By Laurie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-05-2006, 01:17 AM
  7. Rounding percentage's of the total
    By jesterhs in forum Excel General
    Replies: 5
    Last Post: 07-26-2005, 12:16 PM

Tags for this Thread

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