Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default formulas that may sometimes contain empty cells

How do you get a formula that contains empty cells to ingnore the formula and
return a value of 0 (zero)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default formulas that may sometimes contain empty cells

Say we are adding A1 thru A10, but if any are blank, report 0 instead:

=IF(COUNTBLANK(A1:A10)0,0,SUM(A1:A10))

So you will see 0 until all the data is filled in.
--
Gary''s Student - gsnu200829


"chrisnsmith" wrote:

How do you get a formula that contains empty cells to ingnore the formula and
return a value of 0 (zero)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default formulas that may sometimes contain empty cells

Hi,

This really depends on the formula. In general cells that are empty are
treated as 0. For example =SUM(A1:A10) returns 0 if all the cells are empty.
On the other hand

=AVERAGE(A1:A10)

returns DIV/0 if all the cells are empty. In that case you could use
=AVERAGEIF(A1:A10,"<") in 2007
or in 2003
IF(COUNT(A1:A10)0,AVERAGE(A1:A10),0)

We need to see your formula.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"chrisnsmith" wrote:

How do you get a formula that contains empty cells to ingnore the formula and
return a value of 0 (zero)

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
formulas showing up in an empty cell by themselves Paolo Excel Discussion (Misc queries) 0 July 11th 08 06:19 AM
Excel - Autom. Filter "Empty / Non Empty cells" should come first Rom Excel Discussion (Misc queries) 0 August 10th 05 04:32 PM
When I SUM cells & 1 is empty I need the result to be empty not 0 Maribel Excel Discussion (Misc queries) 1 August 2nd 05 12:49 AM
How can I convert empty strings to empty cells? Shane Excel Discussion (Misc queries) 2 July 19th 05 12:10 PM
Empty space in formulas. Arla M Excel Worksheet Functions 4 January 27th 05 06:35 AM


All times are GMT +1. The time now is 12:32 AM.

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

About Us

"It's about Microsoft Excel"