+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    08-08-2009
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2003
    Posts
    25

    removing zeroes in a graph

    How do i remove all data labels that equal zero, while keeping the negative and postive value data lables on a line or bar graph?

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: removing zeroes in a graph

    set up so that 0 =n/a
    if values in col b then in another col use =if(b1=0,na(),b1) then use that column as your data instead of B
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-08-2009
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: removing zeroes in a graph

    i did that but the zeroes still show up

  4. #4
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: removing zeroes in a graph

    You will need to post a sample I think.

    Martin's point is: Error values don't plot... so if you ensure you're using an error value instead of 0 in your source table then you will get your desired results.

    On an aside I am moving this thread to the Charting Forum.

    Thanks

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944

    Re: removing zeroes in a graph

    Use a custom number format on the data labels

    General;-General;;
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    08-08-2009
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: removing zeroes in a graph

    the custom number format worked but how would i do it for currency?

  7. #7
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,133

    Re: removing zeroes in a graph

    Select you favorie current format, tahn then edit it; e.g., change,

    _($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_) to _($* #,##0.00_);_($* (#,##0.00);

    or

    $#,##0.00 to $#,##0.00;-$#,##0.00;
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

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