Skip to content

Work out a quantity with a formula

Choose Formula as a price item’s Unit when none of the ready-made units counts what you sell. The quantity is then the result of an expression you type, worked out from the design’s sizes, and the item’s line is that result × its Rate (on Non-standard building size surcharge, a percentage of the Base Price line). Unit is in Calculation, the first of the three parts of the item’s form. This page covers the one unit Formula; the rest of Calculation, the Pricing Formulas and the other units included, is on Choose what a price item charges for.

Two things on Prices are called formula. An item’s Pricing Formula says what it measures in the design - the floor, the roof, a placed window - and is the Pricing formula: line on its card; the filter reading Formula: Any lists items by it. The unit Formula is the expression you type, and its result replaces that measurement. To find the items that use this unit, type Formula in Search…, which reads units; the Formula filter does not. Every Pricing Formula offers the unit except Any Trim.

The placeholders, functions and checks on this page are the admin panel’s own, the same on every configurator.

As an instance admin, you need Can Manage Price Items For Instance. Without it the admin panel’s menu has no Prices entry, so this form is out of reach. An admin who holds Can Manage Admin Tool Users For Instance can give it to you on Admin Users, provided they hold it themselves - see Roles: what each one lets you do.

On a Garden Room Planner Pro account, the role is Can Manage Own Price Items, which every pro seller holds, and the form edits your own price list. On pro’s standard list, Prices only reads: take your own copy first, or, holding prices of your own, go back to them with Use my pricing. If you hold only templates, your copy waits until you switch to it with Use my pricing - see Set your prices.

The form changes one item of the list Prices is showing. As an instance admin, that is your company’s own list - Common in the user list, where the page has one - unless you chose one of your configurator’s users in that list above the filters, which appears only where your configurator lets some users have prices of their own. A changed formula on an item of your company’s list recounts every design priced from that list, every customer’s, at its next calculation - see Whose list you are editing in Set your prices.

An item added to a user’s empty list becomes their whole list. Once a user’s own list holds a single item or template, it prices that user’s designs instead of your company’s list: their designs are then priced from that item alone. Start a user’s list with an import - see Start a list with an import.

Whether a price item changes any price depends on your configurator: some configurators never read Prices, and on those each line of a drawing’s quote comes with a rate of 0, whatever the list holds. If no change you make ever shows, ask Garden Room Planner support, who set your configurator up: e-mail info@gardenroomplanner.com, the address in the admin panel’s footer, or use Ask our team under an Ask AI answer where Help offers it.

On Prices, the green pencil on an item’s card opens its form, Edit Item; +, at the end of the row of filters, opens Add Item. On a new item, choose the Pricing Formula first: it decides which sizes a formula can use, choosing another clears the rest of the form, and it cannot be changed once the item is saved. Then, in Calculation, choose Formula in Unit: the Formula box appears below Use rate matrix, with Show available placeholders & functions under it.

A formula that puts a foundation pile, or a post, at every crossing of a 1.2 m grid over the rectangle around the floor, on an Item priced per pile:

(Ceiling({floorWidthMm} / 1200) + 1) * (Ceiling({floorDepthMm} / 1200) + 1)

Ceiling({floorWidthMm} / 1200) counts the 1.2 m spans across the floor, a part span counted whole, and a row has one pile more than it has spans: hence the + 1. The depth is counted the same way, and the two multiply. A 4.1 × 3.6 m floor has 4 spans across (3.4, rounded up) and 3 deep: (4 + 1) × (3 + 1) = 20 piles. With both 1200s made 1000, a pile every metre, the same floor takes (5 + 1) × (4 + 1) = 30. The Rate is what each pile is charged; the formula only counts.

The Calculation part of a screw-piles price item - Pricing Formula Item, Type Screw Piles, Unit Formula, its Rate, its formula in the Formula box, and the Placeholders, Operators and Functions lists opened under it

On an Item, the formula is worked out once for every placed item the price item prices, so it charges only designs that hold an item of its Type. On an Always Include item, the same formula is worked out once for every design its Match conditions allow.

On a Garden Room Planner Pro account, pro’s standard list counts its Screw Piles with exactly this formula, once the planner’s Include Screw Piles is chosen; to change the count, open Screw Piles on your own list with the green pencil - see Add screw pile foundations and Pro’s standard price list, and making it your own.

  • The Formula box takes one line. Empty, it shows e.g. @floorAreaM2 * 1.1, which is what you type, not what you get: @ opens a list, you pick {floorAreaM2}, and the box reads {floorAreaM2} * 1.1.
  • The list holds the design’s sizes first, as {name}, then the functions, marked ƒ. More letters narrow it to the names holding them anywhere: Max(@ro offers {roofWidthMm}, {roofDepthMm} and {roofAreaM2}, then ƒ IfError, ƒ Product, ƒ Round and others. @ works straight after any character, inside brackets too. A size goes in as {name}, a function as its bare name: type its brackets yourself.
  • The list offers the sizes the item’s Pricing Formula allows (the table under Placeholders), and the 39 functions on all.
  • Show available placeholders & functions lists the same under Placeholders, Operators and Functions; Hide available placeholders & functions folds it away.
  • Function names may be in any capitals: Excel’s ROUNDUP works. Placeholder names may not: {FloorAreaM2} is refused on Save, so pick them from the list.
  • Save stores the item, and so does Enter in the box while the @ list is closed; with it open, Enter puts in the highlighted entry. Close leaves without saving.

A changed formula reaches a design’s price at its next calculation, but a drawing whose quote has been made keeps its figures - see How prices and quotes are worked out.

Each is a measurement of the design being priced, in millimetres (Mm), metres (M) or square metres (M2), not rounded. A formula has no feet versions, unlike an item’s wording, and no words: no building style, no finish.

PlaceholderOffered onIts value
{floorWidthMm}, {floorDepthMm}allthe rectangle around the floor, so an L-shaped floor counts whole
{roofWidthMm}, {roofDepthMm}allthe same around the floor and its porches, eaves overhang left out
{floorAreaM2}, {roofAreaM2}allthe floor’s area; the roof’s, porch canopies included, measured flat
{totalHeightMm}allthe total height, base and roof included
{eavesHeightMm}allto the eaves on a pitched roof; on any other, the total height, so a pent roof’s high side
{widthMm}, {depthMm}, {heightMm}Itemthe placed item’s size
{lengthM}Itemthe longer of its width and depth, in metres
{areaM2}Itemits width × height: its face, not its footprint
{porchDepthMm} / {deckDepthMm}Individual Porch / Individual Integrated Deckthat porch’s or deck’s depth
{floorLineLengthM}boththe length of the building edge it runs along
{roofLineLengthM} / {deckLineLengthM}porch / deckthe length of its outer edge, longer where the side round the corner has one too
{floorLineAreaM2}boththe building edge × the depth
{roofLineAreaM2} / {deckLineAreaM2}porch / deckthe outer edge × the depth

On an Item the sizes are the placed item’s, never the price item’s Width, Height and Depth. Any other name in braces - a typo, {widthMm} on a Floor item, {widthFt} - is refused on Save.

No placeholder measures walls, wall finishes, openings, partitions, fences or wings. On those Pricing Formulas a formula sees only the building’s sizes, so every fence group, and every wall-finish line, gets the same result: to charge them by their own size, keep one of the Pricing Formula’s own units.

The operators are + - * / ^ ( ) = <> < <= > >=. The comparisons are for If, <> being “does not equal”; ^ is a power, which the box writes as Pow (below).

The 39 functions: If, And, Or, Not, IfError, Sum, Average, Product, Min, Max, Round, RoundUp, RoundDown, Ceiling, Floor, MRound, Int, Trunc, Truncate, Mod, Sqrt, Pow, Power, Abs, Sign, Exp, Log, Ln, Log10, Sin, Cos, Tan, Asin, Acos, Atan, Atan2, Radians, Degrees, Pi. The ones a quantity usually needs:

  • Ceiling rounds up to a whole number or, given a second figure, to a multiple of it: Ceiling(..., 2) for things sold in pairs. RoundUp rounds up to the decimal places you give it: RoundUp({floorAreaM2}, 0).
  • If makes a step: If({floorAreaM2} > 20, 2, 1) is 2 on a floor over 20 square metres, otherwise 1.
  • Max and Min set a lowest or a highest count: Max(4, Ceiling({floorAreaM2} / 5)) is never less than 4.
  • IfError stands in where the rest cannot be worked out: IfError(your formula, 1) gives 1 there, instead of no line.
  • Item: once for every placed item the price item prices.
  • Individual Porch and Individual Integrated Deck: once for every porch or deck that passes Minimum porch depth (mm) and Limit to specific porch sides, or Minimum deck depth (mm), Limit to specific deck sides and, with Only match exact finish/variant on, the deck’s finish. A design with none gets no line.
  • Fence Post and Fence Panel: once for every group of identical posts or panels.
  • External Finish, External Finish (Excluding Openings), Internal Finish and Internal Finish (Excluding Openings): with Only match exact finish/variant on, once, for its finish; off, as one line with no finish, and only when some finish is on the walls.
  • Non-standard building size surcharge: once, and only when a pricing template that counts prices a design whose floor width or depth is not the nearest template’s.
  • Extra Height Wall Area: once, and only when a pricing template that counts prices the design. A formula cannot see the template’s height, so it is worked out whether or not the design is taller - see Price from reference buildings with templates. Whether templates price your designs at all depends on your configurator.
  • Every other Pricing Formula: once a design.

A negative result is kept, and its line comes off the total: {floorAreaM2} - 20, meant for each square metre over 20, takes money off every smaller floor. Write Max(0, {floorAreaM2} - 20) where a count must never fall below 0. A result of 0 gives no line.

A formula that fails, or comes to 0, leaves no line, silently. One that cannot be worked out on a design - a division by 0, say - counts as 0, and its line is dropped: nothing in the price, its breakdown or the quote says so. Save checks a formula with every size set to 1, so one that saves can still fail on a real design. Wrap a part that divides by a size in IfError.

A formula can charge for a part the design does not have. It replaces what the Pricing Formula measures, and with it the check that the design has that part. Worked out once a design, a Bulkhead, Integrated Porch, Wings, partition, Outer Walls or External Wall Openings (Windows & Doors) item by Formula, and a Roof, Floor, Internal Ceiling or Integrated Decking one with Only match exact finish/variant off, is charged on every design its Match conditions allow, whether or not the design has the part; a wall-finish item with that switch on is charged for its finish whether or not a wall carries it. Require at least one of these item types in the design looks only at placed items, such as windows and doors, never at a porch, a deck, a bulkhead, a wing or a wall’s finish. For a porch or a deck, use Individual Porch or Individual Integrated Deck; otherwise keep the Pricing Formula’s own unit, or limit the item with Limit to specific building styles - see Choose which designs and items a price item applies to.

You can: paste it into the Formula box, then click anywhere outside the box. The box rewrites what Excel writes differently and lists each change under Adjusted for compatibility:, in up to three messages: Removed the leading ’=’., Converted percentages (e.g. 50%) to value / 100. and Converted ^ (power) to Pow(…). The pricing engine reads ^ as XOR, not exponent.

You pasteThe box then reads
=2^3Pow(2, 3)
={floorAreaM2}*110%{floorAreaM2}*(110 / 100)
Sqrt({floorAreaM2}) + 2the same, with no message

A function the list does not have, such as Excel’s EVEN, is refused on Save.

Cell references are refused only when you Save. Leaving the box turns =ROUNDUP(A1*2,0) into ROUNDUP(A1*2,0) with just Removed the leading ’=’.; Save then refuses it: Cell references aren’t supported (A1). Replace each cell with a placeholder - {floorAreaM2} for a cell that held the floor area - or with the figure it held.

With Unit on Formula and the box empty, Save turns the box red and sends nothing.

Otherwise the formula is checked on Save. A refusal is a browser message starting Error when creating price item: for a new item or Error when updating price item: for a saved one, then one of these, always in English; the form stays open with what you typed:

MessageWhat it means
Cell references aren’t supported (A1). Use a placeholder (e.g. {floorWidthMm}) or inline the value.The brackets name each spreadsheet cell found: replace each with a placeholder, or with the figure the cell held.
Unknown placeholder(s): {name}.A name this Pricing Formula does not offer, a typo or the wrong capitals: pick it from the @ list.
The formula could not be parsed. Please check the syntax.A bracket, comma or operator out of place, such as a bracket never closed: Ceiling({floorWidthMm} / 1200.
The formula must evaluate to a number.Text in quotes, or, with every size at 1 as Save tries it, a division by 0 or the square root of a negative number: {floorWidthMm} / ({floorWidthMm} - {floorDepthMm}) is refused. Wrap such a part in IfError.
Invalid formula: and the reasonAnything else: an unknown or misspelt function (Function not found. and its name), or one given the wrong number of figures (RoundUp() takes 2 argument(s), but 1 were supplied.).

Another Unit hides the Formula box, but the form keeps its text while it is open: choose Formula again and it is back. Once the item is saved with another unit, the formula is gone: copy it somewhere first if you may want it again.

  • Round a count up with Ceiling or RoundUp, so that a pile, a panel or a post is never charged by the half.
  • Try a new formula on a small and a large test drawing - designs you save in your configurator yourself, after the change - and read its line on each Price tab, which needs Can View Configurator Saves For Instance. Your configurator is the live one: a design you save there arrives in the admin panel like a customer’s, and sets off whatever your configurator does when a customer saves.
  • Bulk Price Adjustment on Prices changes a formula item’s Rate like any other, and leaves its formula alone.

Verified live on 15 October 2026, on PlannerAdmin 3fae3c50, on a demo configurator, as an instance admin holding the 15 roles a new colleague starts with: Search… reading units, and Formula: Any listing Pricing Formulas (the demo list has no item by Formula, so Formula finds none); the Pricing Formula fixed on a saved item; on a blank Add Item, read and closed unsaved, Formula in Unit on every Pricing Formula tried but Any Trim, the box below Use rate matrix reading e.g. @floorAreaM2 * 1.1, the @ list - sizes, then the 39 functions marked ƒ - and Max(@ro, a size going in as {floorAreaM2} and a function as its bare name, the sizes offered on Item, Floor, Individual Porch, Individual Integrated Deck and Fence Panel, Show available placeholders & functions with the operators and functions listed here, and the formula kept through a change of Unit. And on a Garden Room Planner Pro account, as a pro seller: Screw Piles on the seller’s own copy of pro’s standard list, opened with its green pencil and closed unsaved - Item, Type Screw Piles, Unit Formula, group Structure, and exactly the formula above; Can Manage Own Price Items among the seller’s roles.

Checked again live on 16 October 2026, on PlannerAdmin aae059c8, the build published that day, whose admin panel pages are 3fae3c50’s (only its customer quote e-mails and footer changed): on a configurator’s own sample data, as an instance admin holding the 15 roles, every step of this page that the configurator offers had its Show me where pressed, outlining its control in view, and this page’s pictures were taken there.

Verified from source (PlannerAdmin 3fae3c50): what a formula works out to and when, and its effect on a price (they need a change saved and a test drawing); the Excel conversion and its messages (the walk’s browser stopped the conversion request, sent as a change); every refusal on Save, the empty box included, and Enter as Save (a change saved); Bulk Price Adjustment (a change saved); the reader without Can Manage Price Items For Instance (an account without the role); pro’s planner adding the screw-pile item once Include Screw Piles is chosen (from Planner’s code).

Also called: equation, spreadsheet formula, maths, custom quantity, variable, number of piles, how many piles, screw piles.