How can I use nested IF using OR in a pivot table?

G

Guest

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%)
 
D

Debra Dalgleish

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top