+ Reply to Thread
Results 1 to 8 of 8

Clustered Column Chart - Removing Gaps for Zero Value Series

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    United Stated
    MS-Off Ver
    Excel 2007
    Posts
    20

    Clustered Column Chart - Removing Gaps for Zero Value Series

    So this question has been asked many different ways, but I can't find a workable solution. I have a clustered column chart that has, for example, 3 categories and 10 series. The third category has a value for each series, while the other two only have values in some of the series. The resulting graph leaves gaps/spaces for those series that don't have values. Is there a way to resolve this to where those gaps/spaces are not there? I've tried populating the 0 value cells with =NA(), but that just removes the data labels.

    I've attached a generic idea of what I'm working with. I'm open to suggestions for organizing my data as well. Thanks for any help that can be provided.
    Attached Files Attached Files

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

    Re: Clustered Column Chart - Removing Gaps for Zero Value Series

    attached example shows how the revised data layout would need to be in order to remove the blank columns from within a cluster.

    The axis labelling can be improved by replacing inner text with space character.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    United Stated
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Clustered Column Chart - Removing Gaps for Zero Value Series

    Thank you Mr. Pope. Very clever! This is what I was looking for, you were able to keep the series labels static and adjust the values. It may be a challenge to dynamically change the data for each subject category, but nothing a little VBA magic can't handle I wasn't sure what you meant by the axis labeling. Also, is the "pad" series in place because the tick marks can't be used with this format? For some reason, I can't get the tick marks to show up.

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

    Re: Clustered Column Chart - Removing Gaps for Zero Value Series

    The PAD rows are used to keep the clusters separate.

    The tickmarks will be evenly spaced which means it's unlikely to fit in with the uneven spread of columns within clusters.
    You could use dummy line series to fake tick marks and axis labels if you wanted.

  5. #5
    Registered User
    Join Date
    11-07-2012
    Location
    United Stated
    MS-Off Ver
    Excel 2007
    Posts
    20
    That makes sense. I think the PAD is sufficient in providing separation. Thanks again.

  6. #6
    Registered User
    Join Date
    11-07-2012
    Location
    United Stated
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Clustered Column Chart - Removing Gaps for Zero Value Series

    I've been playing with this chart idea and I keep running into the same issue. The first multi-level category level is not included because the blank line under the value labels which offsets everything. I tried using your dataset/worksheet and couldn't recreate your graph unless I individually adjusted each series and the category labels. I've attached the workbook with my attempt to create the graph by just selecting the data range. Is there a better way to create this graph?

    Book1.xlsx

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

    Re: Clustered Column Chart - Removing Gaps for Zero Value Series

    the easiest way, without readjusting each individual series via the select data dialog, is to put a space in those padding cells when you first create the chart.

  8. #8
    Registered User
    Join Date
    11-07-2012
    Location
    United Stated
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Clustered Column Chart - Removing Gaps for Zero Value Series

    Wow That works. Most of the time I love that Excel is intuitive, this is not one of those times. Thanks again.

+ 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. Automate series addition/removal in a clustered bar chart
    By Andrew82 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-21-2012, 05:59 AM
  2. Clustered column chart
    By TechRetard in forum Excel General
    Replies: 2
    Last Post: 01-26-2011, 06:01 PM
  3. Clustered Column Chart Help
    By LordMarcus in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-19-2009, 12:23 AM
  4. clustered column chart
    By ExcelUser4 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-19-2007, 06:46 AM
  5. Replies: 0
    Last Post: 11-23-2005, 01:55 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