Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How can I use nested IF using OR in a pivot table?

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default How can I use nested IF using OR in a pivot table?

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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


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
pivot table - New Data Allen Excel Discussion (Misc queries) 2 November 16th 05 03:15 AM
pivot table created from another pivot table Kreed Excel Worksheet Functions 6 October 26th 05 04:16 PM
how to delete/clean out the row list in pivot table john² Excel Worksheet Functions 1 May 26th 05 04:56 AM
Pivot table, dynamic data formula Excel GuRu Excel Discussion (Misc queries) 3 May 3rd 05 10:45 PM
Problem with Pivot Table Drop-Down Menus Mac Excel Worksheet Functions 4 November 7th 04 01:18 PM


All times are GMT +1. The time now is 11:13 AM.

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"