+ Reply to Thread
Results 1 to 6 of 6

Thread: Reflect 0 value in bar chart

  1. #1
    Registered User
    Join Date
    04-09-2010
    Location
    Fairfax, VA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Exclamation Reflect 0 value in bar chart

    I have created a duel color bar chart that draws data from an accompanying spreadsheet. The bars are based on formulas and in some cases the answer will be 0.

    In those instances I still need a bar (gray) to fill the void.

    Is there a programatic way or anyway at all to accomplish this task?

    I'm an Access guy and my Excel skills aren't quite this advanced.

    Chart is attached.

    Thanks for the assist.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,150

    Re: Reflect 0 value in bar chart

    Hello soglejr,

    welcome to the forum.

    In your source data, create a new colum and enter a formula along the lines of

    =IF(SUM(C20:D20)=0,1,0)

    so when both data values for the red and green series are zero, return a value of 1.

    Then include that series into the stacked column chart.

    see attached.

    Is that something that could work for you?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-09-2010
    Location
    Fairfax, VA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Reflect 0 value in bar chart

    I'm stupid. I gave you the wrong example. The gray bar is not based on a calculation. It is based on three values all being zero. In the example you returned to me that would be all three values in the 35D row being zero.

    Sorry for the confusion. Thanks for the assist.

  4. #4
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,150

    Re: Reflect 0 value in bar chart

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  5. #5
    Registered User
    Join Date
    04-09-2010
    Location
    Fairfax, VA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Reflect 0 value in bar chart

    Sorry about the cross posting thing. Thought I was responding to the same thread.

  6. #6
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,150

    Re: Reflect 0 value in bar chart

    what are you talking about?

+ 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.2.0