View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
GPO GPO is offline
external usenet poster
 
Posts: 12
Default pivot tables, calculated fields, empty cells and zeros

Thanks Martin, but that didn't work. Outside of the pivot table excel sees
the cell as blank, but when a formula is applied in a pivot table, it is
treating empty cells as zeros. Try it.

Regards

GPO
/*******************************/

Hi GPO,

ISBLANK should fix that for you, something like
=IF(ISBLANK(my_numerator),"",my_numerator/my_denominator)

HTH
Martin

"GPO" wrote in message
...
Excel 2000.

I have a calculated field in my pivot table that simply divides one field
by
another.

The formula is =my_numerator/my_denominator.

The underlying data in the numerator field can legitimately be
a) an integer greater than or equal to zero, or
b) an empty cell. The empty cell and zero are NOT the same thing.

What I want is:
a) When my_numerator is zero and is divided by my_denominator, a zero is
returned.
b) When my_numerator is the empty cell and is divided by my_denominator,
an
empty cell is returned.

At the moment, when my_numerator is the empty cell and is divided by
my_denominator, a zero is returned, which is incorrect.

What can I do?

Regards

GPO