You are here:
Sample Data Categorization Formulas
Use these formulas for data categorizations.

Use more general search terms.
Select fewer filters to broaden your search.
Use these formulas for data categorizations.
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: All Editions |
For details about using the functions included in these samples, see Formula Operators and Functions.
This formula displays “Large Deal” for deals over one million dollars or “Small Deal” for deals under one million dollars.
IF(Sales_Price__c > 1000000,
"Large Deal",
"Small Deal")
This formula displays Small if the price and quantity are less than one. This field is blank if the asset has a price or quantity greater than one.
IF(AND(Price<1,Quantity<1),"Small", null)This formula checks the content of a custom text field named Product_Type and returns Parts for any product with the word “part” in it. Otherwise, it returns Service. The values are case-sensitive, so if a Product_Type field contains the text “Part” or “PART,” this formula returns Services.
IF(CONTAINS(Product_Type__c, "part"), "Parts", "Service")
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.