Treating empty cells as missing data in formulae in Numbers '09

I'm working with numerical data where many cells are empty (missing data). My problem is that when I use formula to make calculations, Numbers treats empty cells as zeros, and won't let me search and replace an empty cell with a placeholder (like . in excel).

Any ideas?

MBP, Mac OS X (10.6.3)

Posted on Jun 10, 2010 6:38 PM

Reply
9 replies

Jan 6, 2011 8:44 AM in response to quercuslobata

Hi,
Welcome to Apple Discussions and the Numbers '09 forum.

You can set up your formula to insert an empty string as the result by enclosing the formula in an IF() statement.

=IF(ISBLANK(B),"",B*4)

AVERAGE() and some other functions will ignore the empty string (and other text values), but these will cause an error message when handled by arithmetic operators.

Regards,
Barry

Jan 6, 2011 8:45 AM in response to quercuslobata

I will ask what I already asked in an other thread.

What means "blank cell" for you ?

(1) For Numbers, a blank cell contains nothing.
(2) For many users, a blank cell contains nothing or contains a string whose length is zero.

In case (1), using the ISBLANK() function is perfect
In case (2), itsn't. replace it by
=IF(COUNT(theCell)=0,"",theCalculation)

Yvan KOENIG (VALLAURIS, France) vendredi 11 juin 2010 17:16:41

Jan 6, 2011 8:45 AM in response to quercuslobata

When we don't want to display the result of a calculation on a certain condition, we can test for that condition and substitute a different output. In your case, you may have blank input cell and you don't want to display the negative result that would otherwise occur. There are at least two general approaches that you could use. The easiest would be to go ahead and make the calculation and then format all negative results to a font that wouldn't be visible, using Conditional Format. A slightly more complicated way, as Barry described above, would be to test for the blank cell condition and substitute a null string. Here's a graphic of the null string case.

User uploaded file

When you have learned a few basic tricks this will all seem easy to you.

Jerry

Jan 6, 2011 8:44 AM in response to Badunit

Sorry for the confusion... Say that I have a huge dataset with a number of columns of numeric (not string) data and I want to perform a mathematical operation, how do I get the correct answer if there is missing data for some cells (empty cells that should not be zero)?

The dot is just an example of how this is handled in Excel ( i.e. avg 3 3 = 2, but avg 3 3 . =3). I have no particular attachment to the dot, I just want my formula to work correctly.

Is that any clearer? Thanks for the help.

Jan 6, 2011 8:44 AM in response to quercuslobata

quercuslobata wrote:
I'm working with numerical data where many cells are empty (missing data). My problem is that when I use formula to make calculations, Numbers treats empty cells as zeros, and won't let me search and replace an empty cell with a placeholder (like . in excel).



Why would Numbers behave like Excel ?

Remember : *"Think different !"*

Yvan KOENIG (VALLAURIS, France) vendredi 11 juin 2010 11:02:27

Jan 6, 2011 8:44 AM in response to KOENIG Yvan

I am trying to think different, but I am new at this and I still need my formula to work right. I can see that the built in function avg was a bad example because unlike excel Numbers does this right.

A more clear example (I hope) of what I'm trying to do is this:

Say I have a number of observations of sizes

178
182

194
196

I know the minimum possible size (say 176) and I want to compute (observed size-minimum size)/2. The blank cell results in a negative number, but what I want is a blank cell.

Any thoughts?

Thanks again for being patient with a newbie.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Treating empty cells as missing data in formulae in Numbers '09

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.