In Salesforce Reports, Custom Summary Formulas may display #Error! in report cells when the formula attempts to divide a value by a zero denominator. This commonly occurs with currency fields, which store a value of 0.00 even when displayed as blank on a record or report.
Note: Currency fields, although displayed as blank on the record and report, always enter a 0.00 value in any formula.
To remove #Error! values from a Salesforce Custom Summary Formula, add an IF statement that checks the value of the denominator before performing division.
Add an IF statement that checks the value of the denominator.
Example: For the formula: SampleField__c:SUM / SampleField2__c:SUM
Write instead: IF(SampleField2__c:SUM = 0, SampleField__c:SUM, SampleField__c:SUM / SampleField2__c:SUM)
This formula returns the numerator value when the denominator is zero, preventing the #Error! result.
Example: For the formula: IF(CLOSED:SUM = 0, 0, AMOUNT.CONVERT:SUM/CLOSED:SUM)
The grand total evaluates the formula at the summary level — it calculates AMOUNT.CONVERT:SUM / CLOSED:SUM across all records, not as a sum of the individual group results.
Additional Notes:
000384796

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.