Graph is considering blank as zero

Zubair

Active Member
Joined
Jul 4, 2009
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
I am using following formula and on blank cells graph is showing zero, is there any change in my formula which can not shown plot if cell is blank?


=IF(A30="","",INDEX($Y$7:$AB$33,$I30,3))
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
=IF(A30="",NA(),INDEX($Y$7:$AB$33,$I30,3))
 
Upvote 0
Solution
Thanks mart37, Graph get corrected but #N/A is appearing in the data how can I remove that in same formula ?
 
Upvote 0
Did you tried:
  1. Click the chart you want to change.
  2. Go to Chart Tools on the Ribbon, then on the Design tab, in the Data group, click Select Data.
    Excel Ribbon Image
  3. Click Hidden and Empty Cells.
    Excel Charting dialog for Hidden and Empty Cells
  4. In the Show empty cells as: options box, click Gaps, Zero, or Connect data points with line.
 
Upvote 0
Perhaps you mean to hide the #N/A result in the formula cell?
If so, you could use Conditional Formatting to do that as shown in cell A5 below.

21 04 06.xlsm
A
1
2
3
4
5#N/A
Sheet2
Cell Formulas
RangeFormula
A5A5=IF(A30="",NA(),INDEX($Y$7:$AB$33,$I30,3))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A5Expression=ISNA(A5)textNO
 
Upvote 0
Peter - Not able to apply conditional Formatting, please share steps.
 
Upvote 0
Peter - Not able to apply conditional Formatting, please share steps.
Select the cell
Home ribbon tab -> Conditional Formatting -> New rule ... -> Use a formula to determine which cells to format -> Format values where this formula is true:-
=ISNA(A5) (instead of A5 put the address of the cell you have selected) -> Format... -> Font tab -> Choose white (or whatever colour matches your cell background colour) -> OK -> OK
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,891
Members
449,058
Latest member
Guy Boot

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