+ Reply to Thread
Results 1 to 9 of 9

Cluster/Stacked Bar Chart?

  1. #1
    Registered User
    Join Date
    01-09-2020
    Location
    Bel Air, Maryland
    MS-Off Ver
    Office 365
    Posts
    5

    Cluster/Stacked Bar Chart?

    I am trying to create a chart that has clusters by division, and then stacked data for employee counts - with the salary and hourly counts for multiple dates. I can't figure out how to do both in one chart. Sample data attached.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,474

    Re: Cluster/Stacked Bar Chart?

    The most common approach I see is this one: https://peltiertech.com/clustered-st...mn-bar-charts/ Note that the chart itself is a simple stacked bar/column chart, and that most of the work to make it a clustered and stacked is in arranging the data in the spreadsheet.
    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
    01-09-2020
    Location
    Bel Air, Maryland
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Cluster/Stacked Bar Chart?

    I am having difficulty applying this method for some reason. Was hoping for more help.
    Last edited by terribryant; 02-11-2020 at 01:58 PM.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,474

    Re: Cluster/Stacked Bar Chart?

    Your sample file does not show any of your attempts, so I do not know what part you are having trouble with or what part you are not understanding. I am also unsure exactly how you want the data to appear in the chart. I can see that you have dates and 2 categories (hourly/salary) for each data. There are 5 "data" groups and nothing that talks about "divisions".

    In the end, I expect we will use Peltier's technique, so it is essential to understand exactly how Peltier's technique works -- how spacing the data out in different rows/columns with the blank rows/columns/cells in between combine to give the clustered and stacked appearance. Help us understand exactly what you want, what you do and don't understand, and we'll help you learn how to put this together.

  5. #5
    Registered User
    Join Date
    01-09-2020
    Location
    Bel Air, Maryland
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Cluster/Stacked Bar Chart?

    Thanks. I am attaching an updated chart that is closer to what I am looking for, I just need the columns clustered.
    Attached Files Attached Files
    Last edited by terribryant; 02-11-2020 at 02:30 PM.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,474

    Re: Cluster/Stacked Bar Chart?

    Assuming I understand, putting your divisions in the place of Peltier's commodities, your dates + "hourly/salary" are in the place of Peltiers quarter + budget/actual, creating this is just like Peltier's tutorial:

    1) Select the full table A1:K8 (I included the Totals row for good measure, it can be removed at the end, if desired). Insert chart -> stacked column. My copy of Excel chose to put the dates along the category axis, so I executed the Switch row columns to put the divisions along the category axis.
    2) Insert 4 rows between each division and between division 5 and the totals row.
    3) Move the hourly/salary data for each date down so that each data is in its own row. In order to avoid the chart series definitions "moving" as I move the data, I often prefer to use a copy-paste-go back and delete procedure rather than a cut-paste procedure.
    4) Check each data series to make sure that Excel is still using the correct definitions for each data series (make sure it did not shift any of the data series down while you were moving data). Remove the Totals row from the chart, if you don't want it in there.

    At this point, you should have a clustered and stacked column chart. Additional steps if you want.

    5) Add an additional blank row between each division if you want a blank space between divisions in the chart.
    6a) Move the division names down 2 or so rows (again, I prefer copy-paste-delete over cut-paste) so that the division names will be roughly centered under each grouping. -Or-
    6b) Follow Peltier's instructions for adding a dummy series and labeling it to add the category names.
    7) Any other formats you like.

    Nothing really different from Peltier's tutorial there, so be sure to spend some time with it and see how it all works together. As I noted, most of the work is working out the data arrangement in the spreadsheet.

  7. #7
    Registered User
    Join Date
    01-09-2020
    Location
    Bel Air, Maryland
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Cluster/Stacked Bar Chart?

    Thanks. I guess I must be stupid because when I follow the method it's stacking the wrong data points.

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,474

    Re: Cluster/Stacked Bar Chart?

    In what way is it stacking the wrong data points? My guess is that something went wrong at step 4 -- checking the definitions of each data series.

    What is it using for the horizontal category axis data? I would expect A3:A29 or similar range in column A.
    What is it using for each series? It must be using the same row range as the horizontal category axis data for each data series. So, if the horizontal data is A3:A29:
    10/1/2019 hourly should be B3:B29
    10/1/2019 salary should be C3:C29
    10/31/2019 hourly should be D3:D29 (even though D3 is blank because you moved this datum down to D4).
    10/31/2019 salary should be E3:E29 (even though E3 is blank because you moved this datum down to E4).
    and so on.

    Did you end up with something different for the data ranges in the chart?

  9. #9
    Registered User
    Join Date
    01-09-2020
    Location
    Bel Air, Maryland
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Cluster/Stacked Bar Chart?

    I finally got it to work, I want to thank you so much for your help. Is there a way to change the stacked chart so that hourly is on top of salary instead of how I have it now? Actually never mind I figured it out!
    Last edited by terribryant; 02-11-2020 at 08:19 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. Replies: 1
    Last Post: 06-13-2018, 09:34 AM
  2. [SOLVED] Stacked cluster chart
    By BRISBANEBOB in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-09-2018, 06:10 PM
  3. Replies: 2
    Last Post: 10-25-2013, 10:22 AM
  4. Excel 2007 : Cluster-Stacked Column Chart Excel 2007
    By starbecks in forum Excel General
    Replies: 4
    Last Post: 06-13-2012, 02:57 PM
  5. [SOLVED] [SOLVED] cluster & stacked & line in one chart
    By Scott in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-11-2006, 12:30 PM
  6. How can I create a combination stacked & cluster column chart?
    By fullerdb in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-03-2006, 01:30 PM
  7. Stacked column and cluster column on same chart?
    By Sus in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-02-2005, 06:25 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