ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pivot Calculated Field -If Statments (https://www.excelbanter.com/excel-programming/384987-pivot-calculated-field-if-statments.html)

David127

Pivot Calculated Field -If Statments
 
Hello,

I know 'If' statments can be used in Calculated Fields of pivot tables where
the result is a number. However is there a way the result can be text? e.g.
if(x.15,"Fail","Pass")

Thanks!

Debra Dalgleish

Pivot Calculated Field -If Statments
 
It depends what x is, but maybe you could use a custom number format for
the data field.
Double-click on the field button, and click the Number button
For Category, choose Custom
In the Text box, type:
[.15]"Fail";[<=.15]"Pass";General

David127 wrote:
I know 'If' statments can be used in Calculated Fields of pivot tables where
the result is a number. However is there a way the result can be text? e.g.
if(x.15,"Fail","Pass")



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


David127

Pivot Calculated Field -If Statments
 
Hi Debra - This worked great. Thanks!

"Debra Dalgleish" wrote:

It depends what x is, but maybe you could use a custom number format for
the data field.
Double-click on the field button, and click the Number button
For Category, choose Custom
In the Text box, type:
[.15]"Fail";[<=.15]"Pass";General

David127 wrote:
I know 'If' statments can be used in Calculated Fields of pivot tables where
the result is a number. However is there a way the result can be text? e.g.
if(x.15,"Fail","Pass")



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html




All times are GMT +1. The time now is 03:35 AM.

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