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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

HackSlash

Active Member
Joined
Nov 18, 2016
Messages
360
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

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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,191,671
Messages
5,987,957
Members
440,121
Latest member
eravella

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
Top