If function not accepting text in calculated field of pivot table

INN

Board Regular
Joined
Feb 3, 2021
Messages
128
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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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