Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ali
 
Posts: n/a
Default Pivot Table Calculated Field- Help

Hi,

I have a pivot table that is coming from a simple spreadsheet with following
columns:

Name, Credits - Where name is the name of an individual, and credit is the
credit amount they have. I want to add a calculated column on the pivot,
that has a value of "Allow" or "Deny" depending upon credit. So, if, Credit
< 5, the value of the calculated field should be Deny, else it shoudl be
Allow.

I tried using the If statement, but it doesn't seem to work for me when I
use string values. Is there a way for this to be done?

Will appreciate any help on this.

Thank you,

Ali


  #2   Report Post  
Faulk
 
Posts: n/a
Default

Try adding a column to your data called "Allow/Deny" and use the
following formula:

Assuming Name is column A and Credit is column B, in column C type:

=if(B1<5,"Deny","Allow")

Then add the third column to your pivot table.

  #3   Report Post  
Ron Coderre
 
Posts: n/a
Default

This may not be elegant, but it's functional:

Add the Sum of Credit field in a second time.
Display the Pivot Table
Select the Sum of Credit2 field and assign it this custom format:
[<5]"Deny";[=5]"Allow";General

Does that help?

Regards,
Ron

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
Using a Pivot Table Calculated Field to get a Unique Count Mike Struckman Excel Worksheet Functions 1 November 22nd 05 05:32 PM
Pivot Table - Calculated Field fnov Excel Discussion (Misc queries) 9 March 6th 05 06:19 PM
pivot table - hide details but show subtotal for calculated field tenneym Excel Discussion (Misc queries) 1 February 9th 05 03:07 AM
Calculated Field in Pivot Table Edgar Thoemmes Excel Worksheet Functions 0 December 23rd 04 11:59 AM
How to create a calculated field formula based on Pivot Table resu dha17 Excel Discussion (Misc queries) 1 December 15th 04 05:39 AM


All times are GMT +1. The time now is 03:04 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"