Prevent a dynamic line chart from interpreting formula output of "" as 0?

wrecclesham

New Member
Joined
Jul 24, 2019
Messages
45
I have a formula in a table that uses an IF function. The output of the formula dynamically plots a line chart.

The problem I'm experiencing is that if the output of the IF function is False, then the "" value output is interpreted by the dynamic line chart as a zero instead of a blank cell, and a line is plotted at 0.

What is supposed to happen is that nothing should be plotted at all where the formula outputs "".

How can my formula output a blank cell output in such a way as to prevent the corresponding dynamic line chart from treating it as a "0" and plotting a line through zero?
 
Last edited:

JazzSP8

Well-known Member
Joined
Sep 30, 2005
Messages
1,218
Re: How to prevent a dynamic line chart from interpreting forumula output of "" as 0?

Have you tried replacing the "" result of the formula with NA()

Code:
=IF(Test,Positive,NA())
 

wrecclesham

New Member
Joined
Jul 24, 2019
Messages
45
Re: How to prevent a dynamic line chart from interpreting forumula output of "" as 0?

Great. Thank you.

I was initially trying to get the table to show a blank cell but I now realize that that wasn't important and it's fine if it shows #N/A. The only thing that matters is that the graph plots the right lines and that it plots nothing at all where it's not supposed to.

Your solution looked different to what I was expecting but actually does exactly what I wanted! Very cool.
 

JazzSP8

Well-known Member
Joined
Sep 30, 2005
Messages
1,218
Re: How to prevent a dynamic line chart from interpreting forumula output of "" as 0?

No worries, glad to help.

If you want the appearance of a blank cell then you can always use Conditional Formatting to hide it.

'Conditional Formatting > New Rule > Use a Formula to determine...'

Using A1 as an example, use;

Code:
=ISNA(A1)
As your formula.

Format the condition so that it appears "blank" (white on white text, etc.)

Hope that helps :)
 

Forum statistics

Threads
1,081,986
Messages
5,362,561
Members
400,681
Latest member
mariscann

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top