2016 Prevent Chart Drop to Zero

mistersteve

Board Regular
Joined
Aug 18, 2014
Messages
110
Office Version
  1. 365
I have Excel 2016 and am trying to stop 'zero drop' in the chart
I know I had it working in earlier versions

This is the formula a tried
=IF(SUMIF(D36:O36,">0")=0,NA(),SUMIF(D36:O36,">0"))

is there a different way in 2016?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I don't think you need SUMIF and IF at the same time. Use one or the other.

The SUMIF says show all sums greater than zero and the IF says "IF ZERO THEN" you should be able to see now that the SUMIF will never allow a zero to be passed to the IF thus your result will always be:

You can simplify your code to this:
Code:
=SUMIF(D36:O36,">0")

OR
try the equation with just SUM inside the IF

Code:
=IF(SUM(D36:O36)=0,NA(),SUM(D36:O36))
 
Last edited:
Upvote 0
This formula would create a #N/A whenever the sum of D36:O36 is not above 0. Are you getting something else?
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

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