Revenue Cloud project notebook, written by two Meir IT consultants who implement it.

What is Revenue Cloud?

Pricing·Business

From Spreadsheet to Pricing Rules: Every Gap Went Against Revenue

Nine Excel cells became 120 configuration items. The comparison turned up amounts missing every month, and a price that lived in two places.

Nathan Altmann · Revenue Cloud consultant at Meir IT

Published 5 min read

In 3 linesfor leadership

  1. Prices calculated in Salesforce were missing whole amounts compared to the reference Excel file.
  2. The contract minimum and the multi-site surcharge got lost along the way, and every gap lowered the price.
  3. Before go-live, ask for a formula-by-formula test table and a total price gap of zero.
Black-and-white workstation: a tall stack of paper next to the screen.
In this article (5 sections)
  1. The workbook
  2. What the comparison showed
  3. Why nobody had caught it
  4. One price, two places
  5. In practice

Stage: pricing the quote line. The client sold IT services billed monthly, and its prices came out of an Excel workbook. That workbook was turned into pricing rules in Revenue Cloud, and I was asked to check that Salesforce gave the same prices as Excel.

The workbook

Everything fit in nine cells: a tiered price based on customer size, a minimum price set in the contract, a rounding step, an uplift when the customer has several sites, and a flat setup fee. In Salesforce, those nine cells had turned into 120 configuration items: rules, their conditions, their values, rate tables.

What the comparison showed

The comparison went cell by cell: the workbook's price on one side, the price Salesforce calculated on the other. I expected differences of a few cents. Whole amounts were missing instead:

  • The minimum price was never applied. In Excel, the formula takes the larger of two numbers: the calculated price or the contract minimum. The engine had no way to say "the larger of the two," so whoever entered the rule left the minimum out. Small customers, the ones the minimum exists for, paid less.
  • The multi-site uplift didn't exist anywhere. It had never been carried over.
  • Rounding happened at the wrong step. Excel rounds each item, then adds them up. Salesforce added them up, then rounded. A few cents per line, every month.
  • The setup fee dropped to zero for a customer with no sites, a case no condition covered. It showed up on a real quote.

The 24-, 36- and 48-month commitment discounts were missing too. That one cut the other way: without it, the customer paid more. It's also the only gap the sales reps had noticed.

Why nobody had caught it

An Excel cell calculates a price for any customer, even a case nobody thought of. A rules engine doesn't calculate anything: it adds up the rules that fire. As long as the price is a sum (a tier price, plus a fee, minus a discount), the translation works. It breaks on anything that isn't a sum: comparing two amounts to keep the larger one, rounding in a specific order, or handling a case no rule targets. In that last case, the engine doesn't return an error. It returns zero.

When the person entering rules can't write a formula, they write what the engine accepts. For a minimum or an uplift, that means dropping it. And dropping a minimum can only lower the price, so the error always goes the same way.

On top of that, each piece of the formula only affects some customers: the minimum, the small ones; the uplift, those with several sites; the setup fee, those with none. Acceptance testing runs on everyday quotes, an average customer with one site. Those quotes don't touch any of these pieces. The tests pass, and they would have passed with no minimum at all.

Finally, when a price is too high, the rep sees it and the customer pushes back. That's what happened with the commitment discount. When a price is too low, nobody complains.

For the CFO, this is revenue lost every month across every affected customer, with no anomaly in the books: the invoice matches the quote, and the quote matches the rules. The gap sits between the rules and the pricing policy, and that policy was only written down in the workbook.

One price, two places

The comparison also turned up five products whose price book price didn't match the rule. As long as the rule fires, nothing shows. The day it doesn't, Salesforce uses the price book price, which is wrong, with no warning. And the derived price books, which copy the main price book, had the wrong price as well.

The rule I follow now: every price lives in one place. Either the price book holds the base price and the rules only adjust it, or the rules hold the whole price and a product no rule covers has to fail with an error instead of getting a price.

In practice

When a pricing workbook moves into Salesforce, here's how to test it:

  • Build a table with one row per Excel formula, the Salesforce rule that replaces it, and the test that proves it. A formula with no rule next to it goes to sales leadership before data entry, not after.
  • Test at the edges, not on everyday quotes: just under the minimum, right on it, just above it; either side of every tier; with zero sites, one, two, many; every commitment length.
  • Excel gives the expected price, Salesforce the actual one, and the comparison runs automatically every time the configuration changes.
  • Look at the sum of the gaps with their sign, not just the number of correct cases. 98% correct can hide 2% that all go down.
A technical question about this article?

A question about this article? I reply within 48 hours.

Something unclear, a mistake, or different behavior in your Salesforce org? Write to me.

Prefer email? Write to nathan@meir-it.com

Get notified of new articles

Type at least two letters.