Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default PivotTable Custom Field - formula for no value, with blank cell displayed?

Greetings! Have created a custom field in a pivottable whose zeros are
configured to be displayed as blank cells. The custom field uses an
=IF(A,B,C) formula. If I don't define C, then the cell appears to be
populated with zero, and displays as such in spite of the pivottable
setting.

Question: is there some function, or constant, that can be used in C such
that there is no value applied to that cell from the formula and it displays
as a blank, not a zero? Empty() and Null() don't work.

Played with this a little, determined that I can apply a custom display
format to the field where zero's aren't displayed, but would like to handle
this via a persistent formula rather than a back-end display format.

Thanks for any ideas!
George


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default PivotTable Custom Field - formula for no value, with blank cell displayed?

On Aug 3, 9:22 pm, "G Lykos" wrote:
Greetings! Have created a custom field in a pivottable whose zeros are
configured to be displayed as blank cells. The custom field uses an
=IF(A,B,C) formula. If I don't define C, then the cell appears to be
populated with zero, and displays as such in spite of the pivottable
setting.

Question: is there some function, or constant, that can be used in C such
that there is no value applied to that cell from the formula and it displays
as a blank, not a zero? Empty() and Null() don't work.

Played with this a little, determined that I can apply a custom display
format to the field where zero's aren't displayed, but would like to handle
this via a persistent formula rather than a back-end display format.

Thanks for any ideas!
George


If(A,B,"")

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default PivotTable Custom Field - formula for no value, with blank cell displayed?

That's a double quote, it may be hard to see

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default PivotTable Custom Field - formula for no value, with blank cell displayed?

Thanks. Believe I tried this, and it resulted in a #VALUE error.


"AndrewArmstrong" wrote in message
oups.com...
That's a double quote, it may be hard to see



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default PivotTable Custom Field - formula for no value, with blank celldisplayed?

No, a calculated field can't return a null or a blank cell.

G Lykos wrote:
Greetings! Have created a custom field in a pivottable whose zeros are
configured to be displayed as blank cells. The custom field uses an
=IF(A,B,C) formula. If I don't define C, then the cell appears to be
populated with zero, and displays as such in spite of the pivottable
setting.

Question: is there some function, or constant, that can be used in C such
that there is no value applied to that cell from the formula and it displays
as a blank, not a zero? Empty() and Null() don't work.

Played with this a little, determined that I can apply a custom display
format to the field where zero's aren't displayed, but would like to handle
this via a persistent formula rather than a back-end display format.

Thanks for any ideas!
George




--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default PivotTable Custom Field - formula for no value, with blank cell displayed?

Okay. Is it then a bug that a zero in a calculated field displays as zero
with General format applied in spite of the pivottable being configured such
that cells with a zero display as blank?


"Debra Dalgleish" wrote in message
...
No, a calculated field can't return a null or a blank cell.

G Lykos wrote:
Greetings! Have created a custom field in a pivottable whose zeros are
configured to be displayed as blank cells. The custom field uses an
=IF(A,B,C) formula. If I don't define C, then the cell appears to be
populated with zero, and displays as such in spite of the pivottable
setting.

Question: is there some function, or constant, that can be used in C

such
that there is no value applied to that cell from the formula and it

displays
as a blank, not a zero? Empty() and Null() don't work.

Played with this a little, determined that I can apply a custom display
format to the field where zero's aren't displayed, but would like to

handle
this via a persistent formula rather than a back-end display format.

Thanks for any ideas!
George




--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default PivotTable Custom Field - formula for no value, with blank celldisplayed?

How did you configure it? What is the formula for the calculated field?

G Lykos wrote:
Okay. Is it then a bug that a zero in a calculated field displays as zero
with General format applied in spite of the pivottable being configured such
that cells with a zero display as blank?


"Debra Dalgleish" wrote in message
...

No, a calculated field can't return a null or a blank cell.

G Lykos wrote:

Greetings! Have created a custom field in a pivottable whose zeros are
configured to be displayed as blank cells. The custom field uses an
=IF(A,B,C) formula. If I don't define C, then the cell appears to be
populated with zero, and displays as such in spite of the pivottable
setting.

Question: is there some function, or constant, that can be used in C


such

that there is no value applied to that cell from the formula and it


displays

as a blank, not a zero? Empty() and Null() don't work.

Played with this a little, determined that I can apply a custom display
format to the field where zero's aren't displayed, but would like to


handle

this via a persistent formula rather than a back-end display format.

Thanks for any ideas!
George




--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html






--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
custom field with custom formula in pivot table! Sedaghat Nejad Excel Worksheet Functions 2 June 21st 09 11:19 AM
Want blank cell displayed if indirectly referenced value is zero Pierre Excel Worksheet Functions 3 May 5th 08 08:56 PM
Can I create PivotTable formula using count of field not sum? Clip Excel Discussion (Misc queries) 0 November 7th 06 01:31 AM
pivottable formula : maximum one field - minimum of another one seyhmus Excel Discussion (Misc queries) 1 February 24th 06 12:25 AM
PivotTable - PivotTable Field name is not valid - error! miker1999[_17_] Excel Programming 1 June 10th 04 10:30 AM


All times are GMT +1. The time now is 02:51 AM.

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

About Us

"It's about Microsoft Excel"