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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,215,005
Messages
6,122,661
Members
449,091
Latest member
peppernaut

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