#1
|
|||
|
|||
Empty cells plotted as zero.
In sheet 3 there is a column of figures (col. C)which builds up over time. When a group of four consecutive cells all have values in them the values are averaged and appear in cell P9 in sheet 4
=IF(COUNTBLANK(C13:C16)>0,"",AVERAGE(C13:C16)) This is working O.K. I now want to plot these averages but have the problem of empty cells being plotted as zero instead of being ignored. =IF(Sheet3!P9>0,Sheet3!P9,NA()) I have had this problem before and have received advice from this forum concerning the NA() function. It has worked O.K. on similar programs but not this time. Help please. Colin. Last edited by ColinC; 03-01-2013 at 06:18 AM. |
#2
|
|||
|
|||
Hi Colin
Go to FILE > OPTIONS > ADVANCED And untick the "Show a Zero in cells that have a zero value. Good luck. Tony |
#3
|
|||
|
|||
Hi ColinC
Try the averageif within the iferror. FYI, you can format/pre-format a selection of cells to not show zero values. For example: General;;" or "0.000;;" etc. That way you can still see zero values elsewhere if required. =IFERROR(AVERAGEIF(C13:C16,">0",C13:C16),"") |
#4
|
|||
|
|||
Thanks Tony. Tried unticking but hasn't made any difference.
The problem as I see it is in treating an empty cell as if it did contain zero. Colin. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to delete rows with all empty cells | ubns | Excel Programming | 2 | 08-14-2012 02:01 AM |
Word Empty Cells - Why is it Chr(13) & Chr(7) | tinfanide | Word VBA | 2 | 04-10-2012 01:34 AM |
Apparently empty (blank) cells aren't empty | daymaker | Excel | 3 | 03-08-2012 03:41 PM |
Empty cells plotted as zero. | ColinC | Excel | 2 | 01-23-2012 08:02 AM |
Vba, Is there a better way to test empty cells? | Hwyn | Excel Programming | 2 | 11-14-2011 11:44 AM |