ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF Statment in a Pivot Table (https://www.excelbanter.com/excel-worksheet-functions/77333-if-statment-pivot-table.html)

vcurban

IF Statment in a Pivot Table
 
I'm trying to create a calculated field in a Pivot table that is based on
another field. So, I have something like this:

If (field1 = "Y",0,field3/field4)

However, this is not working with field1 = Y. Any ideas?
--
vcu

Debra Dalgleish

IF Statment in a Pivot Table
 
The calculated field will use the sum of the referenced fields, so the
sum of a text field will be zero. Perhaps you can do the calculation in
the source data, and add that field to the pivot table.

vcurban wrote:
I'm trying to create a calculated field in a Pivot table that is based on
another field. So, I have something like this:

If (field1 = "Y",0,field3/field4)

However, this is not working with field1 = Y. Any ideas?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 07:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com