Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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

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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default pivot tables, calculated fields, empty cells and zeros

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



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
Calculated Fields in Pivot Tables Pelham Excel Worksheet Functions 5 April 4th 06 01:05 PM
Calculated fields-Pivot tables Kim Excel Worksheet Functions 1 November 23rd 05 05:49 PM
Pivot tables - calculated fields Arls Excel Worksheet Functions 0 September 12th 05 01:48 PM
pivot tables - calculated fields Esche Excel Worksheet Functions 3 May 26th 05 05:25 PM
Pivot Tables, calculated fields Excel GuRu Excel Discussion (Misc queries) 1 December 21st 04 12:08 AM


All times are GMT +1. The time now is 08:52 PM.

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"