View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
paperclip paperclip is offline
external usenet poster
 
Posts: 2
Default How can I use nested IF using OR in a pivot table?

It is a fresh download everytime. My best option would be for someone to
enhance the calculated formula to accept any kind of formula :). In the
meantime I'll either do a Getpivotdata or a macro on the data dump. Thanks
for your help at least I won't keep trying to make it work.

"Debra Dalgleish" wrote:

The calculated formula won't recognize the text values, so it will use
the second part of the IF formula for all items.

You could add a column to the pivot table source data, where you
calculate the percentage. Then, add that field to the pivot table, and
it should work correctly.

paperclip wrote:
I would like the calculated formula in a pivot table to use one percent for a
field name if true or a different percent if false. Below is what I have
come up with but it returns always 100%.

=IF(OR(Offset_AccountName="52 - BALD CUT",Offset_AccountName="72 - WIRE &
NUT",Offset_AccountName="17 - APPLE CORE"),'Weight (oz)'*25%,'Weight
(oz)'*100%)



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