Spreadsheet formulas in Budgee
Look up every Budgee spreadsheet function and operator, with syntax, examples, and notes on references, signs, and common errors.
Enter a formula
- Select an editable amount cell and type
=. - Type @ to find a row, group, or forecast driver. You can also click another amount cell to insert it into the formula. Use a supported category or customer row in Months view for formulas with references.
- Finish the formula and press Enter or Tab. For example, insert Sales with @ and type
*5%to get=[Sales]*5%.
Use a period for decimals and commas between function arguments. Enter numbers without currency symbols or thousands separators, as in =1200*0.05. Function names can be upper or lower case. Weekly and daily amount cells support arithmetic.
See how cell references work, including how to choose the month or use only the forecast amount.
Operators
| Operation | Symbol | Example and result |
|---|---|---|
| Addition | + | =250+75 → 325 |
| Subtraction or a leading minus | - | =250-75 → 175 |
| Multiplication | * | =120*1.1 → 132 |
| Division | / | =900/3 → 300 |
| Power | ^ | =2^3 → 8 |
| Percentage | % | =1200*5% → 60 |
| Parentheses | ( ) | =(100+50)*2 → 300 |
Parentheses make the intended order explicit. Exponentiation associates from right to left. Use =-(2^2) for −4 or =(-2)^2 for 4. Add a leading plus or minus when you need to set the sign.
All functions
ABS
ABS(number). Returns the magnitude of a number. Use a leading minus with ABS to make a non-positive amount.
Example =ABS(-80) gives 80. =-ABS(80) gives −80.
POWER
POWER(base, exponent). Raises a number to a power. You can use ^ for the same operation.
Example =POWER(2,3) gives 8. =1200*(1+5%)^3 compounds a 5% increase over three periods.
SQRT
SQRT(number). Returns the square root of a non-negative number.
Example =SQRT(81) gives 9. A negative input gives an error.
ROUND
ROUND(number, places). Rounds to the given whole number of decimal places. Omit places to round to a whole number. Negative places round to tens, hundreds, and so on. Halfway values round away from zero.
Example =ROUND(12.345,2) gives 12.35. =ROUND(1,0) gives 1, and =ROUND(125,-1) gives 130.
MIN
MIN(value, ...). Returns the smallest of one or more supplied values.
Example =MIN(600,500) gives 500. Use =MIN([Sales]*5%,5000) to cap a commission at 5,000.
MAX
MAX(value, ...). Returns the largest of one or more supplied values.
Example =MAX(-30,0) gives 0. Use =MAX(0,[Sales]-[Costs]) when Costs is a positive expense magnitude and you want a floor of zero.
SUM
SUM(value, ...). Adds one or more supplied values. Supply each number or reference as a separate argument.
Example =SUM(120,80,-20) gives 180. =SUM([Product sales],[Service sales]) adds two named rows.
AVERAGE
AVERAGE(value, ...). Returns the arithmetic mean of one or more supplied values. A supplied zero counts as a value.
Example =AVERAGE(100,200,0) gives 100. =AVERAGE([Sales][-1month],[Sales][-2month],[Sales][-3month]) averages three previous months.
IF
IF(comparison, value_if_true, value_if_false). Compares two amounts using >, <, =, >=, <=, or <>. Only the selected result is calculated. IF uses signed cash for financial references in both the comparison and the selected result.
Example =IF(1200>1000,1200*5%,0) gives 60. =IF([Advertising]<[Bank Fees],[Advertising],[Bank Fees]) returns the more negative expense. If Advertising is −80 and Bank Fees is −30, the result is −80.
REMAINING
REMAINING(target). In a saved forecast output formula, returns the part of a target still to forecast after eligible known items. For a positive target it floors the result at zero. Budgee may insert it when you edit an older monthly target to preserve the treatment of known items.
Example =REMAINING(1200) gives 1,000 remaining when $200 is already covered. If $1,300 is already covered, the remaining amount is zero.
Combine formulas and references
Functions can contain other functions and named references. =ROUND(ABS([Advertising])*5%,2) takes 5% of the magnitude of Advertising and rounds it to two decimal places. Use IF around that expression to apply it only when a condition is met.
For a simple growth forecast, =[Sales][-1month]*(1+5%) grows the previous month's value by 5%. See same-month, previous-month and locked references for exact date syntax.
Financial references inserted by clicking a grid cell use that cell's signed cash. A reference inserted by name outside IF normally uses the row's natural direction. For example, a cost can be a positive magnitude in a named formula even though cash out is displayed as negative. Use ABS or -ABS when the sign must be explicit.
Troubleshoot formulas
- Unknown or ambiguous reference. Type
@and pick the exact row or driver. This is especially useful when two groups share a name. - Circular reference. Check whether the formula depends on itself, directly or through another formula. Reference an independent row or an available earlier period with a starting value.
- Division by zero or invalid arithmetic. Check denominators, function argument counts, and values passed to
SQRT. You can use=IF([Units]=0,0,[Sales]/[Units])to handle a zero denominator. - Reference outside the available dates. Check the locked date or relative offset and confirm that the source period is available.
- Why is the total larger than the result? An extra forecast adds to known items already in that period. Open the cell breakdown and check its forecast, invoice, and other components.
Use the cell's error message to diagnose a failed calculation. Check the live tool catalogue if you are using an AI integration to preview or apply a forecast change.