How NOT to graph Zero values on data labels on a secondary axis?

Mark McInerney

Active Member
Joined
Apr 4, 2012
Messages
266
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have combo graph in Excel 2013 - the secondary axis is the percentage up or down of sales year on year. As we are mid way thru the year some of the data is 0. I have an If formula that populates a #n/a if the value is 0 - this works on my normal primary axis mapping of sales weekly over the last couple of years. The secondary axis graph is fine, but when I add labels, it also populates the #n/a value on the label, whereas I need it to be blank?

I was also wondering if it is possible to select certain data to appear in the data table below the graph? When I add a data table I get all data elements, whereas I want only the secondary axis data to appear?

Any help - greatly appreciated.

Best - Mark.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
My problem is not what the output of the formula is, I can leave it as a "0" - my problem is that if my if then statement has a "0" output, I don't want the data label to populate - I do not want any label to appear if the value is zero.

The #n/a reference is only because when I line graph other data, the #n/a stops the graph from plotting along the 0 axis point.
BTW - Thanks for coming back to me.
 
Upvote 0
Apologies Mark - you could use a IFERROR statement to populate "#NA#" - this would then eliminate the ones which are 0 - I am sure this works for X and Y axis - not sure for secondary axis - could you try this changing it to X or Y...
 
Upvote 0

Forum statistics

Threads
1,215,368
Messages
6,124,521
Members
449,169
Latest member
mm424

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