Photo by 1981 Digital on Unsplash
Key terms explained
- Quoted revenue: The amount you agreed to charge the client for the project, sometimes called the contract value or project fee.
- Planned cost (budget): The cost you estimated before work began, broken down by cost type such as labour, materials, and subcontracting.
- Actual cost: Money already spent or committed on the project up to the current date.
- Remaining estimate (ETC — Estimate to Complete): How much more you expect to spend to finish the project from today.
- Projected final cost (EAC — Estimate at Completion): Actual cost plus the remaining estimate; what the project is expected to cost in total.
- Cost variance: The difference between planned cost and actual cost. A negative variance means you have overspent against budget.
- Gross margin: Quoted revenue minus projected final cost, expressed as a percentage of quoted revenue. It measures how much revenue is left after direct project costs.
- Markup: A percentage added on top of cost to arrive at a selling price. Margin and markup use the same numbers but different denominators; this guide uses margin throughout.
- Scope change: Any addition or reduction to the agreed project scope, which may alter the quoted revenue, the budget, or both.
- GSheetPress Calculator: A GSheetPress feature that turns a specially structured Google Sheet into a shareable web form where users enter inputs and receive calculated results without accessing the spreadsheet directly.
What this guide covers and what it excludes
This guide shows you how to build a single-project profitability tracker for a service business — typical examples include consulting, marketing agencies, construction, and IT projects. It covers labour, materials, subcontracting, and a catch-all other costs category, plus a scope-change adjustment field.
It does not cover multi-project portfolio dashboards, time-tracking integrations, payroll tax calculations, revenue recognition under accounting standards, or currency conversion. All cost and revenue figures should be verified against your own accounting records. Margin percentages in this guide are illustrative; actual margins vary by industry and project type.
Prerequisites
- A Google account with access to Google Sheets.
- A GSheetPress account. If you do not have one yet, create a free GSheetPress account and confirm that your Calculator entitlement is active under your plan. Log in with the same Google account you use for Sheets so that the add-on can access your files.
- The GSheetPress add-on installed in Google Sheets. Open any Sheet, go to Extensions → Add-ons → Get add-ons, search for GSheetPress (or GS2Web SaaS), and install it. Authorise the permissions when prompted.
- A dedicated sample workbook created solely for this exercise — do not use a workbook that contains real client data or live project figures.
Plan your profitability model
Before touching the spreadsheet, decide what numbers the calculator needs to collect and what it should calculate automatically. The table below shows the nine inputs this model uses and what each one represents.
| Input number | What the user enters | Unit |
|---|---|---|
| 1 | Quoted revenue (contract value) | Currency |
| 2 | Planned labour cost (budget) | Currency |
| 3 | Actual labour cost to date | Currency |
| 4 | Planned materials cost (budget) | Currency |
| 5 | Actual materials cost to date | Currency |
| 6 | Planned subcontracting cost (budget) | Currency |
| 7 | Actual subcontracting cost to date | Currency |
| 8 | Scope-change revenue adjustment | Currency (positive = added revenue) |
| 9 | Remaining cost to complete (all categories combined) | Currency |
The calculator will then derive: total planned cost, total actual cost to date, total projected final cost, cost variance, adjusted revenue, and projected final gross margin percentage.
Build the calculator sheet
Step 1 — Create a new calculator in GSheetPress
- Open your dedicated sample workbook in Google Sheets.
- Click Extensions → GS2Web SaaS (or the GSheetPress add-on name as it appears after installation) to open the sidebar.
- Choose Calculator → New Calculator.
- When prompted, enter a name such as Project Profitability Calculator.
- When asked how many inputs your calculator needs, enter 9. This count covers only the user-facing input rows, not the button.
- When asked whether to include graphs, choose No for this model — the results are numerical.
- Click Create (or the equivalent confirmation button). GSheetPress inserts a new sheet tab and generates the structure automatically.
GSheetPress pre-fills the header row A1:H1 with these column labels: Labels, Input Type, Required, Data, Default, ToolTips, Inputs, Rules. Do not edit or delete this row.
Because you specified 9 inputs, the generated layout is:
- Rows 2–10: the nine input rows.
- Row 11: the Calculate/Reset button row (generated automatically).
- Row 12: the merged Result Fields separator (generated automatically).
- Row 13: result column headings.
- Rows 14 onward: individual result rows where you will add labels and formulas.
Step 2 — Configure input row 2 (Quoted Revenue)
- A2 — Label: Quoted Revenue
- B2 — Input Type: Number
- C2 — Required: Tick the checkbox (mark as required).
- D2 — Data: Leave blank.
- E2 — Default: 10000 (a sample contract value of 10,000; users will overwrite this).
- F2 — ToolTips: Enter the total agreed contract value, excluding tax.
- H2 — Rules: Leave blank.
Step 3 — Configure input row 3 (Planned Labour Cost)
- A3 — Label: Planned Labour Cost
- B3 — Input Type: Number
- C3 — Required: Tick the checkbox.
- D3 — Data: Leave blank.
- E3 — Default: 4000
- F3 — ToolTips: Budgeted labour cost before work started.
- H3 — Rules: Leave blank.
Step 4 — Configure input row 4 (Actual Labour Cost)
- A4 — Label: Actual Labour Cost to Date
- B4 — Input Type: Number
- C4 — Required: Tick the checkbox.
- D4 — Data: Leave blank.
- E4 — Default: 4500
- F4 — ToolTips: Labour cost already spent or confirmed as of today.
- H4 — Rules: Leave blank.
Step 5 — Configure input row 5 (Planned Materials Cost)
- A5 — Label: Planned Materials Cost
- B5 — Input Type: Number
- C5 — Required: Tick the checkbox.
- D5 — Data: Leave blank.
- E5 — Default: 2000
- F5 — ToolTips: Budgeted cost for materials and supplies.
- H5 — Rules: Leave blank.
Step 6 — Configure input row 6 (Actual Materials Cost)
- A6 — Label: Actual Materials Cost to Date
- B6 — Input Type: Number
- C6 — Required: Tick the checkbox.
- D6 — Data: Leave blank.
- E6 — Default: 1800
- F6 — ToolTips: Materials cost already incurred as of today.
- H6 — Rules: Leave blank.
Step 7 — Configure input row 7 (Planned Subcontracting Cost)
- A7 — Label: Planned Subcontracting Cost
- B7 — Input Type: Number
- C7 — Required: Tick the checkbox.
- D7 — Data: Leave blank.
- E7 — Default: 1500
- F7 — ToolTips: Budgeted cost for external subcontractors.
- H7 — Rules: Leave blank.
Step 8 — Configure input row 8 (Actual Subcontracting Cost)
- A8 — Label: Actual Subcontracting Cost to Date
- B8 — Input Type: Number
- C8 — Required: Tick the checkbox.
- D8 — Data: Leave blank.
- E8 — Default: 1600
- F8 — ToolTips: Subcontracting cost already spent or committed.
- H8 — Rules: Leave blank.
Step 9 — Configure input row 9 (Scope-Change Revenue Adjustment)
- A9 — Label: Scope-Change Revenue Adjustment
- B9 — Input Type: Number
- C9 — Required: Leave the checkbox unticked (this field is optional; zero is a valid value).
- D9 — Data: Leave blank.
- E9 — Default: 0
- F9 — ToolTips: Enter approved scope changes that increase revenue (positive) or reduce it (negative). Enter 0 if none.
- H9 — Rules: Leave blank.
Step 10 — Configure input row 10 (Remaining Cost to Complete)
- A10 — Label: Remaining Cost to Complete
- B10 — Input Type: Number
- C10 — Required: Tick the checkbox.
- D10 — Data: Leave blank.
- E10 — Default: 500
- F10 — ToolTips: Your best estimate of all remaining costs needed to finish the project.
- H10 — Rules: Leave blank.
Step 11 — Confirm the generated button row
Row 11 is generated automatically. Check that it contains:
- A11: Calculate (or the button label GSheetPress inserted)
- B11: Button
- D11: main
Do not change B11 or D11. If you see a Reset option in column E of this row, leave it as generated. Do not place any formula in row 11.
Step 12 — Add result labels and formulas
Row 12 is the generated Result Fields separator — leave it untouched. Row 13 holds result column headings generated by GSheetPress. Your result labels go in column A starting at row 14, and your formulas go in column B starting at row 14.
Column G holds the values submitted by users at runtime (G2 through G10 correspond to inputs 1 through 9). Column E holds the default values you entered earlier. Before the sheet is published, copy E2:E10 and paste them into G2:G10 using Paste special → Values only so that your formulas can be tested immediately. At runtime, GSheetPress overwrites G2:G10 with whatever the user submits through the web form; never store result formulas in column G.
Click cell A14, type the label, press Tab to move to B14, click into the formula bar, type the formula starting with =, and press Enter. Repeat for each row below.
Result row 14 — Total Planned Cost
Label in A14: Total Planned Cost
Formula in B14:
=G3+G5+G7This sums planned labour (G3), planned materials (G5), and planned subcontracting (G7).
Result row 15 — Total Actual Cost to Date
Label in A15: Total Actual Cost to Date
Formula in B15:
=G4+G6+G8Result row 16 — Projected Final Cost (EAC)
Label in A16: Projected Final Cost
Formula in B16:
=B15+G10This adds the total actual cost to date (B15) to the remaining estimate (G10).
Result row 17 — Cost Variance
Label in A17: Cost Variance (Budget vs Projected)
Formula in B17:
=B14-B16A negative number means the project is currently projected to exceed the original budget. A positive number means you are under budget.
Result row 18 — Adjusted Revenue
Label in A18: Adjusted Revenue
Formula in B18:
=G2+G9This adds the quoted revenue (G2) to the scope-change adjustment (G9). If there are no scope changes, G9 is zero and adjusted revenue equals the original quoted revenue.
Result row 19 — Projected Final Gross Margin (currency)
Label in A19: Projected Gross Profit
Formula in B19:
=B18-B16Result row 20 — Projected Final Gross Margin (percentage)
Label in A20: Projected Gross Margin %
Formula in B20 — this formula guards against a zero revenue figure to avoid a division error:
=IF(B18=0,"N/A",B19/B18)Format cell B20 as a percentage: select B20, then go to Format → Number → Percent and choose one or two decimal places. The result will display as a percentage such as 24.00%.
Note on the IFERROR approach: rather than hiding all errors with IFERROR, the IF check specifically handles the only realistic error — a zero denominator when no revenue is entered. If you see any other error value in column B, treat it as a signal to check your G-cell references rather than suppress it.
Worked example with real numbers
Using the default values entered in column E, copy them to column G (Paste special → Values only) and confirm these results appear in column B of the result rows.
| Input | Default value |
|---|---|
| Quoted Revenue (G2) | 10,000 |
| Planned Labour (G3) | 4,000 |
| Actual Labour (G4) | 4,500 |
| Planned Materials (G5) | 2,000 |
| Actual Materials (G6) | 1,800 |
| Planned Subcontracting (G7) | 1,500 |
| Actual Subcontracting (G8) | 1,600 |
| Scope Change (G9) | 0 |
| Remaining to Complete (G10) | 500 |
| Result label | Cell | Expected value |
|---|---|---|
| Total Planned Cost | B14 | 7,500 |
| Total Actual Cost to Date | B15 | 7,900 |
| Projected Final Cost | B16 | 8,400 |
| Cost Variance | B17 | -900 |
| Adjusted Revenue | B18 | 10,000 |
| Projected Gross Profit | B19 | 1,600 |
| Projected Gross Margin % | B20 | 16.00% |
Interpretation: labour has overspent by 500, subcontracting by 100, while materials came in 200 under budget. The net overrun against the original plan is 900. With 500 still to spend, the project is projected to cost 8,400 against a 10,000 contract, leaving a 1,600 gross profit and a 16% margin — still positive but tighter than the planned margin of 25% (7,500 cost on a 10,000 contract).
Alternative scenario — scope change approved
Suppose the client approves an additional 1,200 of scope. Update G9 to 1200 and confirm the new results:
| Result label | Expected value |
|---|---|
| Adjusted Revenue | 11,200 |
| Projected Gross Profit | 2,800 |
| Projected Gross Margin % | 25.00% |
The scope-change revenue fully recovers the margin to the original planned level in this scenario.
Understanding margin percentage and what it excludes
The gross margin percentage calculated here covers only the direct project costs you enter. It does not include overhead allocation, sales tax, depreciation, or any indirect costs. For a fuller picture of project profitability, consult your accountant or refer to the Project Management Institute's guidance on earned value and cost management for industry-standard approaches to cost performance measurement.
If you want to build supporting calculator tools — for example, a rate card or a markup-to-margin converter — the GSheetPress Calculator feature overview explains how to chain multiple calculators together on the same site.
Frequently asked questions
Can I add more cost categories such as travel or software licences?
Yes. When creating the calculator, choose a higher input count — for example, 13 inputs to add two planned and two actual fields for additional categories. Each new pair of inputs gets its own rows in the GSheetPress sheet, and you update the Total Planned Cost and Total Actual Cost formulas to include the new G cells. Keep the input count consistent: every planned cost should have a matching actual cost field so users are not left guessing what to enter.
What happens if the remaining estimate field is left blank?
If a user leaves a required field blank, GSheetPress will prompt them to complete it before allowing submission, because you ticked the Required checkbox for that input. If you chose not to make a field required and it is left blank, Google Sheets treats the empty G cell as zero in arithmetic formulas, which means the projected final cost would equal only the actual cost to date — an underestimate. For the remaining estimate field, keeping it required is the safer choice.
How do I handle projects where costs are tracked in a different currency?
This calculator is currency-agnostic: it performs arithmetic on the numbers entered regardless of currency symbol. Apply a consistent currency format to your result cells using Format → Number → Custom currency in Google Sheets. If you operate across multiple currencies, all values must be converted to a single currency before entry; the calculator does not perform exchange-rate conversion. Note the assumed currency clearly in the tooltip for the Quoted Revenue input so users know what is expected.
Troubleshooting
Result cells show #VALUE! or #REF!
This usually means a G-cell reference points to a row that does not exist or was accidentally deleted. Count your input rows: with 9 inputs, they should run from G2 to G10. Open the formula in the affected result cell, check each G reference, and correct any that are out of range. If you resized the calculator (changed the input count), GSheetPress may have shifted rows — regenerate the calculator with the correct count rather than manually adjusting row numbers.
Margin percentage shows a very large or negative number
Check that G2 (Quoted Revenue) contains a realistic positive number and not zero or a negative. If revenue is zero the formula returns N/A, but if it is a very small positive number (for example, 1 instead of 10000) the percentage will be enormous. Also confirm that G9 (scope change) has not been entered as a large negative number that reduces adjusted revenue below zero — that would produce a negative margin percentage even when the project appears profitable.
Pasting defaults from E to G does not work as expected
Use Paste special → Values only (Ctrl+Shift+V on Windows, Cmd+Shift+V on Mac, or Edit → Paste special → Values only). Pasting without this option may paste formatting or formulas rather than the plain numbers, which can cause G cells to contain formula references instead of test values.
The add-on menu does not show Calculator
Confirm that your GSheetPress plan includes the Calculator entitlement. Log in at your GSheetPress account and check your active features. If Calculator is listed but still does not appear in the menu, try removing and reinstalling the add-on, or contact GSheetPress support for assistance.
Published calculator shows old results after I updated formulas
After editing formulas in the sheet, re-publish using Extensions → GS2Web SaaS → Calculator → Publish Calculator and select the existing calculator name. Publishing the same calculator retains its existing link — you do not get a new URL. Reload the public link to confirm the updated results appear. If results still appear stale, use the Get Links option to refresh the calculator sheet and check that you are opening the public Link in column C rather than the Edit Link in column B.
For additional help building embedded tools, see the GSheetPress Table feature if you want to display a data table alongside your calculator results on the same page.
Publish and test your web calculator
- Share the sample workbook correctly. Click the green Share button in the top-right corner of your Google Sheet. Under General access, change the setting to Anyone with the link and set the permission level to Editor, then click Done. Be aware: this setting permits anyone who obtains the spreadsheet link to edit the file directly. This is why you must use only your dedicated sample workbook and never a file containing real project or client data. GSheetPress requires Editor access to read and write values on behalf of web form submissions.
- Select the calculator tab. Click the tab at the bottom of the workbook that GSheetPress created when you built the calculator.
- Publish the calculator. Go to Extensions → GS2Web SaaS → Calculator → Publish Calculator. Select the calculator you named (for example, Project Profitability Calculator). Click the publish or confirm button and wait for the success confirmation message.
- Open the Calculator Links sheet. GSheetPress creates or updates a sheet called something like Calculator Links or Calculators in your workbook. Find the row matching your calculator's Sheet Name. The columns are typically: Sheet Name (A), Edit Link (B), Public Link (C), and Iframe code (D). Open the Public Link in column C — do not use the Edit Link in column B, which opens the spreadsheet directly.
- Refresh links if needed. If you do not see your calculator listed, use the Get Links option in the same menu to refresh the links sheet.
- Test with worked inputs. On the public calculator page, enter the same values used in the worked example: Quoted Revenue 10000, Planned Labour 4000, Actual Labour 4500, Planned Materials 2000, Actual Materials 1800, Planned Subcontracting 1500, Actual Subcontracting 1600, Scope Change 0, Remaining to Complete 500. Click Calculate. Confirm that the results match the expected values: Projected Final Cost 8400, Projected Gross Margin 16.00%. If results differ, return to the sheet, check G-cell references in result formulas, and re-publish.
- Embed optionally. If you want to embed the calculator on a website, copy the Iframe code from column D of the links sheet and paste it into an HTML block on your web page. For more information on embedding options, visit the GSheetPress publishing options page.
- Republish after changes. If you later update labels, formulas, or input defaults, republish using the same calculator name. The public link remains unchanged.