Salesforce Formula Field: How to Create One, Plus 18 Tested Examples to Copy

A Salesforce formula field is a read-only custom field that calculates its value from an expression each time the record is read. This Text formula on Opportunity sorts every deal into a size band:

IF( Amount >= 100000, "Large",
  IF( Amount >= 25000, "Medium", "Small" )
)

It returns Large, Medium or Small. Formula fields work on any standard or custom object and show on record pages, list views and reports. Below are the six setup steps, then 18 formulas I tested in a Winter ’27 org, ready to copy.

This Tutorial Covers: