Custom Number format to not show zeros and #N/A

Chris Macro

Well-known Member
Joined
Nov 2, 2011
Messages
1,345
Office Version
  1. 365
Platform
  1. Windows
I have the following custom cell format that handles hiding zeros, however I would also like to hide #N/A too. I am graphing this data and I want the data labels to appear non-existent if there is a 0 or #N/A being graphed. I do not want to delete the data labels as in the future there could be numerical values in the cells.

Current Custom Format:

0.00;-0.00;;@
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You might be better off in the long run adjusting your formula to return a 0 insetad of #N/A

Can you post that formula?
 
Upvote 0
That's what I had originally, but line graphs, graph zeros and they do not graph #N/As
 
Upvote 0
Hey JomMo I believe I figured it out. I added an IF() statement to toggle between N/A and 0 based on if I want to graph a bar chart or a line chart. Thanks for your help!
 
Upvote 0

Forum statistics

Threads
1,207,278
Messages
6,077,501
Members
446,286
Latest member
ropebender

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