+ Reply to Thread
Results 1 to 6 of 6

Formulas that give a blank result graph as zero, want a gap in the graph instead.

  1. #1
    Registered User
    Join Date
    03-28-2012
    Location
    Union City, CA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Formulas that give a blank result graph as zero, want a gap in the graph instead.

    I have a formula that determines if there are values in two cells. If values are present, then a function is performed to calculate a number. If one or both cells are blank, then it returns a "blank" in the cell.

    =IF(COUNT(B2, C2)=2, B2*C2/100*1000000*8.34, " ")

    When the column is graphed, all the " " cells graph as zero. I would like the graph to shows gaps in the data. I've tried "showing hidden and empty cells as gaps", but since technically the cell has a formula in it, it is not empty.

    Is there a way to show the " " (blank) cells as gaps, or am I stuck if there is a formula in the cell? Do I have to actually delete the formula in the cells in order for there to be gaps in the graph.

    Thank you!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Formulas that give a blank result graph as zero, want a gap in the graph instead.

    A quick stab here, change the " " to "" (no space)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-28-2012
    Location
    Union City, CA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Formulas that give a blank result graph as zero, want a gap in the graph instead.

    Changing it from " " to "" didn't make a difference. Nice try.

    I can apply a filter only showing those numbers >0, but the spreadsheet columns spread A-N, and I lose data in other columns I need for other graphs. If I use "filter", I'll can copy the same data to another spreadsheet for the one graph.

    If no one comes up with a better solution, I can use the filter function.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Formulas that give a blank result graph as zero, want a gap in the graph instead.

    can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Formulas that give a blank result graph as zero, want a gap in the graph instead.

    The exact solution will depend on chart type. Review this discussion on "gaps" in charts: http://peltiertech.com/mind-the-gap-...g-empty-cells/
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Registered User
    Join Date
    03-28-2012
    Location
    Union City, CA
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Formulas that give a blank result graph as zero, want a gap in the graph instead.

    The linked article in the previous post was very helpful.

    The formula I ended up using is ... =IF(COUNT(B2, C2)=2, B2*C2/100*1000000*8.34, NA())

    The line connects but there is no data marker at the points where there is no data.

    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 09-15-2014, 02:01 AM
  2. [SOLVED] using a max formula on a column with no data to give a Blank result
    By Brentsa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-02-2013, 05:42 AM
  3. VLookup to give Blank result
    By mrcois in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2010, 11:50 AM
  4. Hyperlinkage of one graph with another graph or Drill down graph
    By Sanjay Kumar Singh in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-03-2006, 08:25 AM
  5. [SOLVED] Do not want chart to graph cells with formulas that are "blank"
    By julnord in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-19-2005, 02:05 AM

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