+ Reply to Thread
Results 1 to 5 of 5

Hide #DIV/0! in Excel Chart

  1. #1
    Registered User
    Join Date
    09-10-2010
    Location
    Redditch, England
    MS-Off Ver
    Excel 2010
    Posts
    35

    Hide #DIV/0! in Excel Chart

    I am currently compiling some data and transfering that data into various charts.

    I am currently using the =IF(SUM(E9,E19,E29,E39),SUM(E9,E19,E29,E39),NA()) statement to hide 0 values or blank cells in the chart.

    However on the chart I need to add a line that shows an average of values, so I entered

    =IF(AVERAGE(B12,B22,B32,B42),AVERAGE(B12,B22,B32,B42),NA()), which works, however where there is no data it is showing as a #DIV/0! rather than the #N/A. It transfers the #DIV/0! to a 0 value on the chart, how can I change that to not show up on the chart

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

    Re: Hide #DIV/0! in Excel Chart

    =if(iserror(average(b12,b22,b32,b42)),na(),average(b12,b22,b32,b42))
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Hide #DIV/0! in Excel Chart

    Welcome to the Board.

    However, note, if you opt to x-post the same question on multiple forums disclose all links accordingly:

    http://www.mrexcel.com/forum/showthread.php?t=494037

  4. #4
    Registered User
    Join Date
    09-10-2010
    Location
    Redditch, England
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Hide #DIV/0! in Excel Chart

    Quote Originally Posted by Andy Pope View Post
    =if(iserror(average(b12,b22,b32,b42)),na(),average(b12,b22,b32,b42))
    Brilliant, thank you for your help
    Last edited by shg; 09-10-2010 at 11:54 AM.

  5. #5
    Registered User
    Join Date
    03-13-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Hide #DIV/0! in Excel Chart

    This works for hiding the 'cells' that have DIV/0, but still leaves my X-axis data showing - this data is week by week, ie 07/03/14 , then 14/03/14 , etc. So today I have a chart showing the data for 07/03/14 and previous weeks, but still showing weeks from 14/03/14 with empty y-axis. Is there some way to NOT show the X-axis until N/A changes to an actual figure in the next week?

+ 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