Get graph and trendline to not display non-numerical values as zero

SerenityNetworks

Board Regular
Joined
Aug 13, 2009
Messages
131
Office Version
  1. 365
Platform
  1. Windows
I have a graph that draws information from two columns in a simple table. The information is drawn from cells that contains formulas, for example: =IF(COUNTA(F4:H4)>0,LN(E4),"-"). I've tried replacing the "-" with "", "x", and nothing, but the graph always picks up the non-numerical value and adjusts the trendline as if the values were zero. However, if I go to the table and manually delete the formulas from all the cells that do not contain numerical values then the graph's trendline displays correctly. Obviously, I want to leave the formulas in all the cells and still have the graph display as it would as if the non-numerical results were ignored. How can I either modify the formula or the graph to display without considering the non-numerical values in the source table?

Here is a link to a sample workbook that demonstrates the issue I'm having. The illustration below details the issue, if downloading the workbook sample is not an option.

Thank you in advance,
Andrew

Performance_Drop_Illustration.jpg
 
Ah, I just tried the NA() method. The error value kills other calculations dependent on the data in those columns. I might just duplicate the columns and use the "-" or similar, then just graph off one set of columns and calculate of the other set. I don't have time to work on it now. I just wanted to point out that the NA() method does have some disadvantages other than cosmetic.
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,216,577
Messages
6,131,511
Members
449,653
Latest member
andz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top