+ Reply to Thread
Results 1 to 4 of 4

How to get empty cells not to show up on graph (not even as 0 )

  1. #1
    Registered User
    Join Date
    07-04-2009
    Location
    Milan, Italy
    MS-Off Ver
    Excel 2004
    Posts
    2

    How to get empty cells not to show up on graph (not even as 0 )

    HI everyone! I am a newbie Excel user, but I have a Q on behalf of my brother, who usually uses excel for finance charts and such...

    He is wondering if it is possible to excel to see a cell and if it is blank not to display it in a graph... so far if he has the cell return nothing, then the graph shows a zero, but he would like it to just be blank. Also, he said he could get the formula in the cell to return a letter to be then recognized as nothing, thus not showing up on the graph... does this make sense?

    Also, he is wondering if it is possible to set up a cell so that its formula displays a result in a different cell...

    Thanks y'all! Sorry about my ignorance in this matter, but medicine is more my thing than excel :D

  2. #2
    Registered User
    Join Date
    07-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: How to get empty cells not to show up on graph (not even as 0 )

    Well, hiding the row with the blank cell will cause it not to be displayed in the graph.


    If you need a 'smarter' solution then use formulas to rearrange the data so as to 'skip over' the blanks, so that you end up with a column of values without blanks, and then have the graph be based on that:

    Say your data (including some blank cells) is in column A, starting at A2
    Let B1 be empty and in cell B2 have the following thing, and fill down:
    =B1 + IF(LEN(A2)=0, 0, 1)

    Then in column D, say, starting at D2, just have the numbers 1, 2, 3, ...
    Then in column E have =INDEX($A:$A, match(D2, $B:$B, 0)), and fill down

    And base your graph on column E.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to get empty cells not to show up on graph (not even as 0 )

    He is wondering if it is possible to excel to see a cell and if it is blank not to display it in a graph.
    Cells that are #N/A are ignored in charts. So if there is a formula like this,

    =IF(someCondition, someExpression, "")

    ... it can be changed to

    =IF(someCondition, someExpression, NA())
    ... he is wondering if it is possible to set up a cell so that its formula displays a result in a different cell...
    No; a formula returns a result to the cell in which it appears. There are probably other ways to achieve what he wants, though.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    07-04-2009
    Location
    Milan, Italy
    MS-Off Ver
    Excel 2004
    Posts
    2

    Re: How to get empty cells not to show up on graph (not even as 0 )

    Awesome! Thanks guys!

+ 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