# Ignoring positive values on graph.

#### rickblunt

##### Well-known Member
Greetings, I have been staring at this for an hour, trying a few things and I can't seem to figure it out. I am using the formula below on a line graph so that I can ignore the outliers from the data that is being shown on the graph. (J1 is where I enter the outlier limit number) It works fine but I would like to tweak the formula so that I can also ignore the positive values, I only want the negative values to be shown on my chart.

I know that I could just set my graph axis range to ignore >0, but I would kind of like to have any positive value also display "NA". Can this code be tweaked to only allow negative values? I appreciate any input.

Excel Formula:
``=IF(AND(ABS(C98-C97)>\$J\$1,ABS(C98-C99)>\$J\$1),NA(),C98)``

### Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Maybe

Excel Formula:
``IF(OR(C98>0,AND(ABS(C98-C97)>\$J\$1,ABS(C98-C99)>\$J\$1)),NA(),C98)``

or

Excel Formula:
``IF((C98>0)+(ABS(C98-C97)>\$J\$1)*(ABS(C98-C99)>\$J\$1),NA(),C98)``

Thanks JGordon, that first one worked perfect.

Replies
7
Views
188
Replies
1
Views
211
Replies
14
Views
652
Replies
0
Views
246
Replies
1
Views
1K

1,217,316
Messages
6,135,811
Members
449,965
Latest member
Ckl43

### 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.

### Which adblocker are you using?

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

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