If function not accepting text in calculated field of pivot table

INN

Board Regular
Joined
Feb 3, 2021
Messages
124
Office Version
  1. 365
Platform
  1. Windows
Hi
I want to create a calculated field in pivot table and to use this function

= IF('Amount Sold' >7,"good","bad")

But I got an error message #Values, but if I use this function

= = IF('Amount Sold' >7,1,2)

I get 1 and 2 based on the value of Amount Sold. Why text is not accepted in If fucntion in Pivot table? Thank you very much

NameItemAmount SoldRegionRow LabelsSum of Amount SoldSum of Field1
MaryA10EastA101
RajB5WestB52
JackD5EastC101
BobC10CentalD52
Grand Total301
SNAG-0972.jpg
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
In a regular pivot the calculated field is a "Value" field and it expected to be number to which you can apply Sum, Avg, Min, Max etc.
You may be able to do what you want if you load the data into the datamodel and use DAX.
 
  • Like
Reactions: INN
Upvote 0
Solution
Thank you. It took me long time to understand what you said above. When I read again now, it makes perfect sense. Thanks for all your help.
 
Upvote 0
Thanks for the follow up. Please let us know when an explanation doesn't work for you, perhaps we can use a different example or approach or perhaps a different person will answer and use different terminology. We are here to help.
 
  • Like
Reactions: INN
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top