I have a PivotTable with just two fields. I'd like to create a calculated field to manipulate that data.
IF the DESCRIPTION field is "Contribution" I want to multiply by -1.
IF the DESCRIPTION field is "Withdrawl" I want to multiply by -1.
IF the DESCRIPTION field is anything else, I want to leave the value alone.
My data is in an AMOUNT field.
I'm trying to create a Calculated Field formula to do this calculation, but even the first part gets hosed and returns a value of 0.
My formula:
=IF(DESCRIPTION="Contribution",AMOUNT*-1,IF(DESCRIPTION="Withdrawl",AMOUNT*-1,AMOUNT))
By the "normal" rules of Excel, this formula works (assuming I have named ranges corresponding to DESCRIPTION and AMOUNT.) As a calculated field in a pivot table however, it's chaos!
Is there something wrong with the formula above that won't work in a calculated field? What should I be doing instead?
IF the DESCRIPTION field is "Contribution" I want to multiply by -1.
IF the DESCRIPTION field is "Withdrawl" I want to multiply by -1.
IF the DESCRIPTION field is anything else, I want to leave the value alone.
My data is in an AMOUNT field.
I'm trying to create a Calculated Field formula to do this calculation, but even the first part gets hosed and returns a value of 0.
My formula:
=IF(DESCRIPTION="Contribution",AMOUNT*-1,IF(DESCRIPTION="Withdrawl",AMOUNT*-1,AMOUNT))
By the "normal" rules of Excel, this formula works (assuming I have named ranges corresponding to DESCRIPTION and AMOUNT.) As a calculated field in a pivot table however, it's chaos!
Is there something wrong with the formula above that won't work in a calculated field? What should I be doing instead?