Quick summary
A Salesforce formula field lets you automatically calculate and display values based on other fields in your CRM objects. This step-by-step walkthrough shows you how to create a formula field using the Object Manager and Advanced Formula editor in Salesforce Setup.
Steps
- Click the gear icon at the top right corner of your Salesforce dashboard.
- Select Open Advanced Setup from the dropdown menu.
- Click Object Manager at the top of the Setup page.
- Select the object you want to add a formula field to (e.g., Account, Opportunity, Contact).
- Click Fields & Relationships in the left-hand sidebar.
- Click New at the top of the Fields & Relationships list.
- Choose Formula as the Data Type.
- Click Next to proceed to the next step.
- Fill in the required field details, including the field label and description.
- Choose the Formula Return Type (e.g., Currency, Number, Text).
- Click Next to open the formula editor.
- Select Advanced Formula to access the full formula editor.
- Click Insert Field to browse and select a field to add to your formula.
- Choose a field (e.g., Amount), then click Insert to add it to the formula.
- Click Insert Operator and choose an operator (e.g., +, -, *, /) for your formula.
- Click Insert Field again to select another field to complete your formula, then click Insert when finished.
- Click Check Syntax to validate your formula and ensure it is error-free.
- When the formula is valid, click Next to proceed.
- Modify field-level security settings as needed, then click Next.
- Finally, click Save to create and activate the formula field.

