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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,100
Messages
6,128,829
Members
449,471
Latest member
lachbee

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