Excluding Null Value that appears as zero in a chart

shepcs

Board Regular
Joined
Feb 2, 2003
Messages
70
Office Version
  1. 365
Platform
  1. Windows
HI
I created a formula that says if the value is equal to or less than zero, use "". However, when you go to chart it recognizes it as a zero instead of just breaking the line (I manually did it in the pics). Any way to prevent excel from doing this just for the chart data (as opposed to the greater workbook)? Appreciate any help

Chart.xlsx
ABCDEFGHIJKLMNOPQ
1DA LMPGasRAW
28/1$93.71$8.16$8.16
38/2$82.78$7.88$7.88
48/3$69.15$8.97$8.97
58/4$68.78$8.45$8.45
68/5$66.24$9.10$9.10
78/6$70.99$9.10$9.10
88/7$88.76$9.10$9.10
98/8$66.10$7.35$7.35
108/9$54.70$5.81$5.81
118/10$54.96$4.99$4.99
128/11$53.55$4.89$4.89
138/12$49.73$4.80$4.80
148/13$56.27$4.80$4.80
158/14$97.18$5.86$5.86
168/15$189.19$8.06$8.06
178/16$265.13$8.11$8.11
188/17$97.88$8.09$8.09
198/18$59.35$6.19$6.19
208/19$51.65$4.11$4.11
218/20$52.34$3.51$3.51
228/21$52.83 <-Why does this register as a zero when the formula is ""($500.00)
238/22$46.15$3.79$3.79
248/23$45.13$3.85$3.85
258/24$44.10$3.61$3.61
268/25$52.35$4.50$4.50
278/26$48.55$2.87$2.87
288/27$53.64$4.63$4.63
298/28$119.10$5.39$5.39
308/29$106.56$11.15$11.15
318/30$86.59$7.03$7.03
328/31$46.75$3.73$3.73
1
Cell Formulas
RangeFormula
Q2:Q21,Q23:Q32Q2=O2
O2:O32O2=IF(Q2<0,"",Q2)
 

Attachments

  • Snip2.JPG
    Snip2.JPG
    99.8 KB · Views: 2
  • Snip1.JPG
    Snip1.JPG
    99.7 KB · Views: 2

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,215,196
Messages
6,123,578
Members
449,108
Latest member
rache47

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