Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Stu Stu is offline
external usenet poster
 
Posts: 29
Default Don't want to plot blank cells on my chart

This is the formula in a cell which is plotted as a data point on a chart

=IF(B12=0,"",(100-(B13/(SUM(B12:B13))*100)))

It works fine, but I don't want the chart to plot it if the cell is blank ("")
I went into Tools - Options - Chart and selected Plot Empty Cells As Not
plotted
But it still plots the empty cell as zero
Please advise
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Don't want to plot blank cells on my chart

Stu

Replace "" with NA()

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Stu" wrote in message
...
This is the formula in a cell which is plotted as a data point on a chart

=IF(B12=0,"",(100-(B13/(SUM(B12:B13))*100)))

It works fine, but I don't want the chart to plot it if the cell is blank
("")
I went into Tools - Options - Chart and selected Plot Empty Cells As Not
plotted
But it still plots the empty cell as zero
Please advise


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Don't want to plot blank cells on my chart

The cell isn't empty, it contains a formula.

Try this:

=IF(B12=0,NA(),(100-(B13/(SUM(B12:B13))*100)))

That'll return a #N/A "error" but will be ignored in the chart.

If you don't want to see the #N/A's displayed in the cells you can use
conditional formatting to hide them by setting the font color to be the same
as the fill color.

Condtional Foramtting
Formula Is: =ISNA(cell_ref)
Set the font color to be the same as the fill color

Biff

"Stu" wrote in message
...
This is the formula in a cell which is plotted as a data point on a chart

=IF(B12=0,"",(100-(B13/(SUM(B12:B13))*100)))

It works fine, but I don't want the chart to plot it if the cell is blank
("")
I went into Tools - Options - Chart and selected Plot Empty Cells As Not
plotted
But it still plots the empty cell as zero
Please advise



  #4   Report Post  
Posted to microsoft.public.excel.misc
Stu Stu is offline
external usenet poster
 
Posts: 29
Default Don't want to plot blank cells on my chart

Works!! Thanks!!

"Nick Hodge" wrote:

Stu

Replace "" with NA()

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Stu" wrote in message
...
This is the formula in a cell which is plotted as a data point on a chart

=IF(B12=0,"",(100-(B13/(SUM(B12:B13))*100)))

It works fine, but I don't want the chart to plot it if the cell is blank
("")
I went into Tools - Options - Chart and selected Plot Empty Cells As Not
plotted
But it still plots the empty cell as zero
Please advise


  #5   Report Post  
Posted to microsoft.public.excel.misc
hb hb is offline
external usenet poster
 
Posts: 8
Default Don't want to plot blank cells on my chart

On this note, I am having difficulty because excel is still plotting when
there is a NA in the cell. E.g. i have selected 75 rows, i only want excel to
plot when a cell is populated. I set up
=IF($B4=$A4,NA(),VLOOKUP($B4,'190'!$C$1:$AI$302,7, "FALSE")) for Y values and
=IF(B4=A4,NA(),B4) for X-values. until there is actually something to plot NA
is there, but excel still plots it on the chart.

any help is appreciated.

thanks

"T. Valko" wrote:

The cell isn't empty, it contains a formula.

Try this:

=IF(B12=0,NA(),(100-(B13/(SUM(B12:B13))*100)))

That'll return a #N/A "error" but will be ignored in the chart.

If you don't want to see the #N/A's displayed in the cells you can use
conditional formatting to hide them by setting the font color to be the same
as the fill color.

Condtional Foramtting
Formula Is: =ISNA(cell_ref)
Set the font color to be the same as the fill color

Biff

"Stu" wrote in message
...
This is the formula in a cell which is plotted as a data point on a chart

=IF(B12=0,"",(100-(B13/(SUM(B12:B13))*100)))

It works fine, but I don't want the chart to plot it if the cell is blank
("")
I went into Tools - Options - Chart and selected Plot Empty Cells As Not
plotted
But it still plots the empty cell as zero
Please advise




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
blank cells plot as zero values Pete Nelson Charts and Charting in Excel 2 July 18th 06 03:59 AM
How, on a line chart, to skip blank entry rather than plot as 0? JohnTerp Charts and Charting in Excel 1 July 13th 06 12:11 AM
How do I force a line chart to not plot cells that are "null". Tania Charts and Charting in Excel 1 April 26th 05 09:51 PM
Strange Problem with Chart and Plot Visible Cells Option Marcus Leon Charts and Charting in Excel 1 January 7th 05 04:52 AM
Blank cells in a chart JackRnl Excel Worksheet Functions 3 December 20th 04 02:11 PM


All times are GMT +1. The time now is 04:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"