+ Reply to Thread
Results 1 to 5 of 5

[SOLVED] Stacked Column Graph with automatic zero column removal

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    Stafford
    MS-Off Ver
    Excel 2003
    Posts
    20

    [SOLVED] Stacked Column Graph with automatic zero column removal

    All,

    Great Board...picked up loads of tips, as such my excel knowledge is getting OK...but I do need help with this one...as such thought I'd throw it out and see if anyone can help!

    I have a list of companies with jobs outstanding (split by time). I want to show these jobs as stacked column graph...but if the total number of jobs is zero, then there is no need to show the column..hence remove it.

    You can see from the attached that there are 25 companies, of which 10 currently have no jobs outstanding...how can I remove these.!

    I'd appreciate not only an example spreadsheet, but also some idea of how you did it...as I've tried adapting a couple of other examples for removing zeros from pie charts with little success.

    Thanks again
    Niper
    Attached Files Attached Files
    Last edited by Niper; 03-06-2010 at 12:24 PM.

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

    Re: Stacked Column Graph with automatic zero column removal

    You need to determine which rows to plot, use SUM for that.
    The check the summed value and report the row or lastrow+1
    Use the SMALL function to list reporting rows.
    Build a new chart data table using the INDEX function.

    With the new chart data table you can set up 8 named ranges to define chart labels and series ranges.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    02-19-2010
    Location
    Stafford
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Stacked Column Graph with automatic zero column removal

    Thanks Andy for the speedy response, if I want to cut a paste into another spreadsheet, is there anything special I need to do? found the named ranges, anything else?

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

    Re: Stacked Column Graph with automatic zero column removal

    Just make sure the formula references the correct ranges in the new workbook.

  5. #5
    Registered User
    Join Date
    02-19-2010
    Location
    Stafford
    MS-Off Ver
    Excel 2003
    Posts
    20

    [SOLVED] Re: Stacked Column Graph with automatic zero column removal

    Thanks Andy...all done and looking GREAT!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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