Excel Graph NAs

forcewalker

New Member
Joined
Apr 3, 2017
Messages
1
I am trying to make a graph that changes colors when it reaches its target. I.E. Below Target = Green Above Target = Red.

I have the data set up in three columns, <=Target, >Target, and Target.

The formulas I have are =IF(U121<=CF121,U121,NA()) and =IF(U121>CF121,U121,NA())

My problem lies whenever the data gets transferred into a graph, instead of Excel only graphing the numeric values and changing based on below or above target it graphs #N/As.

Is there a way to tell excel not to graph the #N/A but only the numeric values?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
What kind of chart? The #N/A thing only suppressed plotting of points in marker-based charts (line and scatter). Otherwise you still get a point plotted (a bar) and its value gets displayed as #N/A.

If it's a column chart, use stacked columns, or use clustered columns with an overlap of 100%. Instead of NA() in your formulas, use "" (two double quotes). This gets plotted as zero, but a data label won't show, because the text of the label will be "".
 
Upvote 0

Forum statistics

Threads
1,216,756
Messages
6,132,533
Members
449,733
Latest member
Nameless_

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