When building custom formula fields in Salesforce, the Blank Field Handling section controls how your formula behaves when referenced number, currency, or percent fields contain no value (null). Understanding this setting prevents formulas from returning unexpected blank results.
For custom formula fields, the Blank Field Handling section is accessible in Lightning Experience via Setup > Object Manager > [Object] > Fields & Relationships. Click Edit on the formula field and select the Advanced tab.
The Blank Field Handling option applies when your formula references any number, currency, or percent field. The Advanced tab displays two options:
One possible scenario where Blank Field Handling may be configured incorrectly is when a formula field displays a blank value when you expect it to calculate a result.
Example:
You have two custom fields: Percentage A and Percentage B. You create a formula field that calculates the difference: Percentage_A__c - Percentage_B__c. For a specific record, Percentage A has a value of 1.0 and Percentage B is blank (null).
The result of the formula differs based on your Blank Field Handling selection:
To avoid blank formula results, it is recommended to select Treat blank fields as zeroes to always display a value, unless your business requirements specifically require blank output when referenced fields are empty.
Formula Operators and Functions by Context
All Formula Operators and Functions
For help with your specific formula, visit the Trailblazer Community on Formulas.
000381641

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.