Skip to content

Start with your Excel

An estimate and a client quote in a few minutes.

Try it free

Excel formulas for construction estimates

A few formulas cover most estimates: SUM, SUMIFS, VLOOKUP, ROUND, IF.

Examples and common mistakes below.

Made by SIA Aera (Latvia). Servers in the EU (Frankfurt)Updated

  1. SUMIFS
  2. VLOOKUP
  3. ROUND
  4. Total
Diagram: four formulas from estimate lines to the total.

The most common estimate formulas

These formulas were checked with the Rattiio Excel engine.
FormulaWhat it doesExample
SUMadds up rows=SUM(F2:F40)
SUMIFSadds up by a condition, such as section=SUMIFS(F2:F40,B2:B40,"Labour")
SUMPRODUCTquantity times price in one total=SUMPRODUCT(D2:D40,E2:E40)
VLOOKUPfinds a price by code=VLOOKUP(A5,Prices!A:D,4,FALSE)
XLOOKUPthe same, more simply (Excel 2021 and 365)=XLOOKUP(A5,Prices!A:A,Prices!D:D,"Code not found")
INDEX and MATCHlooks up in any direction=INDEX(D2:D40,MATCH(A5,A2:A40,0))
ROUNDUProunds up to whole units=ROUNDUP(B4/2.5,0)+1
ROUNDVAT from a rate cell, rounded to two decimals=ROUND(F10*$H$1,2)
IFincludes a line only when it applies=IF(B9="Yes",D9*E9,0)

SUM and SUMIFS: totals by section

SUM adds a whole range. An estimate also needs subtotals by section: materials, labour, transport. SUMIFS does that: the sum range, then the condition range and the condition.

Example: =SUMIFS(F2:F40,B2:B40,"Materials") adds only the rows where column B says “Materials”. Spell section names identically, or a row will be left out. An optional line is written with IF: =IF(B9="Yes",D9*E9,0) adds the strip-out only when “Yes” is chosen.

Price lookups: VLOOKUP, XLOOKUP or INDEX and MATCH

Keep prices on one sheet and pull them into the estimate by code. Then a price changes once, not in every estimate. VLOOKUP searches the code column and returns the price from a chosen column. Set the last argument to FALSE to find an exact code.

XLOOKUP does the same with two ranges and lets you set what appears when a code is missing. Use a message such as “Code not found”, never 0, or a missing price quietly becomes a free item. XLOOKUP needs Excel 2021 or 365. INDEX with MATCH works when the price column is to the left of the code. More on how an estimate is built: how to write a construction estimate.

Rounding: ROUND, ROUNDUP and ROUNDDOWN

Materials come in whole units, so use ROUNDUP for quantities: posts every 2.5 m are =ROUNDUP(length/2.5,0)+1. For money use ROUND with two decimals. Keep the VAT rate in its own cell, say H1 (20% in the UK, 21% in Latvia): =ROUND(F10*$H$1,2) gives the VAT to two decimal places.

ROUND rounds normally, ROUNDUP always up, ROUNDDOWN always down. Round each line to two decimals and add up the rounded lines, so the total on the quote matches the lines the client sees. For profit formulas see markup vs margin, and convert the percentages in the markup and margin calculator.

Absolute references and common mistakes

  • Missing $: copying a formula shifts the price range. Use $A$2:$D$200
  • VLOOKUP without FALSE: Excel finds the nearest smaller code, not the exact one
  • Section names differ by a space, and SUMIFS skips the row
  • Prices and the VAT rate typed inside formulas instead of a price sheet or a cell
  • VAT added twice or not at all
  • Text in a cell that looks like a number

What the Rattiio Excel engine supports

  • Sums and conditions: SUM, SUMIF, SUMIFS, COUNTIFS, SUMPRODUCT
  • Lookups: VLOOKUP, HLOOKUP, XLOOKUP, LOOKUP, INDEX, MATCH
  • Rounding: ROUND, ROUNDUP, ROUNDDOWN with Excel behaviour
  • Logic and others: IF, IFERROR, AND, OR, MAX, MIN, AVERAGE, CEILING
  • References to other sheets, and data validation lists as choices
  • .xlsx and .xlsm files, but VBA macros are not run

From formulas to a tool

Rattiio runs these formulas in its own Excel engine and shows how many match the values saved in your file. The workbook behind the roof cost calculator has 140 formulas, and the engine matches all 140.

See a ready workbook with formulas in the construction estimate template in Excel, and how formulas become a calculator in Excel to online calculator. To choose a tool around your formulas, read how to choose estimating software and Excel or estimating software.

Frequently asked questions

Which Excel formulas does an estimate need?

SUM, SUMIFS, VLOOKUP or XLOOKUP, ROUND and ROUNDUP, IF and absolute references with $ are enough.

How do I total an estimate section with SUMIFS?

Give the sum range, then the section column and name: =SUMIFS(F2:F40,B2:B40,"Labour"). Names must match exactly.

VLOOKUP or XLOOKUP for prices?

Either works. XLOOKUP is simpler and can show a message for a missing code, but it needs Excel 2021 or 365. VLOOKUP needs FALSE at the end.

When should I use ROUNDUP?

For material quantities that come in whole units. For money use ROUND with two decimals.

What does $ mean in a formula?

It fixes a reference. $A$2 does not move when you copy the formula to other rows, so write price ranges with $.

Does Rattiio support SUMIFS and XLOOKUP?

Yes. The engine runs SUMIFS, COUNTIFS, VLOOKUP, HLOOKUP, XLOOKUP, INDEX, MATCH and ROUND with Excel behaviour.

Will macros work?

No. Rattiio accepts .xlsx and .xlsm, but VBA macros are not run. The engine calculates formulas only.

Check your own Excel

Add your estimate and see how many formulas match. You can try it without an account.

Check my Excel
Start with your Excel