+ Reply to Thread
Results 1 to 11 of 11

Stacked columns - showing % out of total

  1. #1
    Registered User
    Join Date
    07-17-2019
    Location
    Copenhagen
    MS-Off Ver
    MS Office 365
    Posts
    17

    Stacked columns - showing % out of total

    Hi,

    Problem: I want to show an chart of how much time each department has reported. But since the departments are different in size and numbers, just showing the total columns doesn't really say much.

    The chart should show total reported time in relation to the total worktime per department. Basically I want to see which departments reports the most time (in %).

    I was thinking a chart with stacked column for each category (other, project, absence) and that it shows the spread between these within the stack, and then the total height of the stack shows % of 100 (where 100 is 100% reported time).

    Not sure how to explain this better, attached is a file where you can see what I'm thinking. If you have a better idea to graphically show this, I'm happy for input. In the file attached it seems like Sourcing is reporting a lot less than just 10% less than Design.

    TL;DR: Show which department reports the most time, and also the weight of each category.

    Thanks a lot for any input and help!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Stacked columns - showing % out of total

    It's not clear to me exactly what you want. As a first guess, have you tried a 100% stacked column chart?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    07-17-2019
    Location
    Copenhagen
    MS-Off Ver
    MS Office 365
    Posts
    17

    Re: Stacked columns - showing % out of total

    Yes. The 100% column gives me the information of which department that has the most absence/project/other. This is what I want - however, I'd also like to show which department has reported the most total amount of time (depending on their total per month). Design has 4768 hours per month to report, while Sourcing only have 800. A simple stacked chart will not show the weight of this, it will look like Sourcing has reported a lot less while they could have actually been reporting more (in relation to their 800 hours).

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Stacked columns - showing % out of total

    I must not be understanding what you are trying to do. You are correct that a simple stacked column chart will show Sourcing with a lot fewer total hours. But a 100% stacked column chart should not have shown that. It should have showed Sourcing, R&D, and Design all with the same size column (from 0 to 100%). You should then be able to see that Sourcing has 40% of their hours going to "other" where Design has 20% going to "other". Did you get something different when you tried a 100% stacked column chart? If that was not what you were looking for, can you help us understand better what you are trying to achieve?

    In case the confusion is about the difference between a stacked column and a 100% stacked column:
    simple Stacked column: https://exceljet.net/chart-type/stacked-column-chart
    100% stacked column: https://exceljet.net/chart-type/100-...d-column-chart

  5. #5
    Registered User
    Join Date
    07-17-2019
    Location
    Copenhagen
    MS-Off Ver
    MS Office 365
    Posts
    17

    Re: Stacked columns - showing % out of total

    Apologize for explaining badly. I think this attachement will show it a bit clearer:

    I'd like to have 3 staples with different heights (2) depending on how much time each department has reported (out of total time per month).
    Within these 3 staples I'd like the category to show, as in an 100% stacked column. So an stacked column within an staple column.

    Basically (1) inside of (2). A normal stacked chart where the staples length are weighted for reported time / required reported total time.
    Attached Files Attached Files
    Last edited by AliGW; 07-27-2019 at 04:11 AM. Reason: Please don't quote unnecessarily!

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Stacked columns - showing % out of total

    I am still not sure what you are trying to do.

    In your first example, you had a stacked column chart based on the absolute numbers in spreadsheet columns B:D. This chart shows the relative heights of each category very well. R&D is clearly much larger than sourcing. However, the sourcing column is so much shorter than the others, that you cannot readily see how each "stack" of the sourcing column contributes to the total.

    I then suggested a 100% stacked column chart, which shows all three categories with the same size column. which you included in your latest example. This chart does a good job of showing how each "stack" contributes to the total for each category, but fails to show that each category is a vastly different absolute size (R&D is the same size as sourcing).

    In your latest example, you also show a regular column chart. This chart is based on the % of month column in the spreadsheet. This chart shows that each category is a different size, but something in going from the absolute numbers to this % of month changes the sizes of the columns. R&D is still larger than sourcing, but the difference in column height is much smaller. The purist (who wants the chart to be read accurately) wonders which column chart is the most accurate -- the one like the first example that really shows how much larger R&D is than sourcing, or this new one that exaggerates the size of the sourcing column and compresses the R&D column.

    Not knowing exactly what you want, I might suggest a couple of things to try next to see if they move us closer to the final desired result.
    1) Is this a case where one chart will not be able to accurately show everything you want it to show? Perhaps the best approach would be to use a regular column chart based either on spreadsheet column E or G (depending on which number more accurately reflects the real data). Then have a second 100% stacked column chart to show how each stack contributes to the total for each category. I like this approach because it might be the best compromise that can accurately show both the relative heights of each column, while also allowing the reader to see how each spreadsheet column contributes to the total height.

    2) If the way your latest example based on the % of month column shrinks R&D and exaggerates sourcing is still accurate, perhaps turning this into a stacked column chart with an appropriate transformation of the absolute values in spreadsheet column B:D will work. In J22, I entered the formula =B22/$E22*$G22 (note the mix of relative and absolute references), then copied that formula into J22:L24. Then built a stacked column chart based on these columns. The exaggerated size of the sourcing column in this chart makes it easier to see how each stack contributes to the total. Whether it is enough to really compare how each stack contributes to each category's total is uncertain.

    Maybe one of those ideas will lead closer to what you want to show.

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Stacked columns - showing % out of total

    Perhaps this is what you mean.

    The total stacks are split into 3. The data labels for those sections is then shown as a percentage of the individual stack.

    You will need to use formula to calculate the 2 sets of values. You can then use data labels values from cells to show the percentage share
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Stacked columns - showing % out of total

    @rebel
    Please don't quote entire posts unnecessarily. They are just clutter and make threads hard to read.
    Use the "Quick reply" instead
    Thanks

  9. #9
    Registered User
    Join Date
    08-04-2019
    Location
    Indiana, United States
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Stacked columns - showing % out of total

    I seem to be having a similar trouble. Or at least I think I am from what I understand of this post. I'm new to the forum and hope that this forums correct protocol is to not start a new thread for a similar topic.

    I'm simply creating a budget. I have a category column, a MTD spent column, and a total budget for each category column. I want my bar chart to fill based on the percentage of MTD spent to the total budget. As can be seen in my attachment, the bars for Cart Maintenance and Special Occasion should be full, but they are not. Am I missing something relatively simple? I'm using a 100% Stacked Bar chart.

    Thanks for any help that can be offered. Excel is making me feel dumb!
    Attached Files Attached Files

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Stacked columns - showing % out of total

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Registered User
    Join Date
    08-04-2019
    Location
    Indiana, United States
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Stacked columns - showing % out of total

    Thanks mod. Will do. Should have read this forums rules more closely.

    EDIT: Actually, as it turns out, I found a simple solution to my problem of inserting a hidden column that calculates the difference and using that instead of the "100% total". Not sure if that's *correct*, but it works for me and my purposes. Maybe that will help OP too.
    Last edited by still_harlem_shaking; 08-04-2019 at 12:27 PM.

+ 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. Help with stacked bar chart showing annual call activity
    By ms30594 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-17-2018, 10:59 AM
  2. [SOLVED] Combine stacked columns and stacked bars in a chart
    By maboho93 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-09-2018, 07:52 AM
  3. Replies: 2
    Last Post: 04-22-2016, 05:25 PM
  4. My stacked column Bar chart is not showing the right data!
    By JamesR12 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-14-2013, 07:11 AM
  5. Stacked Column Chart showing the Limits
    By rose4emi in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-12-2012, 04:15 AM
  6. Replies: 0
    Last Post: 03-02-2012, 12:54 PM
  7. [SOLVED] Stacked Columns - Showing Values
    By Connie Martin in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-11-2006, 02:50 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