Formula to delete values in cells if value=0

adityatandel

Board Regular
Joined
Aug 10, 2007
Messages
71
Is there a formula which will delete the value in a cell if the value is 0? i need these values to create a chart and even if there is nothing visible in the cell, the chart takes the formula as zero. what i need is the formula in the cell to be deleted completely.

-Aditya
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Another approach with your chart selected is Tools > Options > Chart and select the option not to plot zero values.

Yet another option is to get your formula to return NA() instead of zero.

Otherwise I'm pretty sure you would need some VBA code to do this.
 
Upvote 0
In chart source range, set zero's to show NA() instead of "" or 0.
You will see N/A# in your table but they will not show or plot in your chart.

Use a formula similar to this…
=IF(C3=0,NA(),C3)
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

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