This workshop builds a simple, checkable tool without writing a program: enter hours, an hourly reference and extra expenses to calculate a subtotal. We’ll use Google Sheets, with no custom server or hosting setup.
A spreadsheet is not automatically SaaS or a full customer-facing app. Here it is our visual learning route. We can inspect formulas, provoke errors and compare the same behavior with AI-generated code.
By the end: you’ll have three numeric inputs, a validation message and a subtotal. We’ll reuse exactly the same specification in the vibe-coding workshop. Use fictional names and amounts only.
Advertisement
Set up your sheet
Create a new spreadsheet. In File → Settings, select the appropriate locale and function language. Google documents these settings. The formulas below use English function names and comma separators.
Row
Column A
Column B
2
Activity
Information website
3
Estimated hours
5
4
Hourly reference in BRL
80
5
Additional expenses in BRL
30
6
Input validation
Formula
7
Illustrative subtotal
Formula
Format B4, B5 and B7 as currency and B3 as a number. Activity is descriptive and does not affect the calculation.
Validate before doing the math
Put this formula in B6, using a sheet with English function names:
=IF(OR(B3="",B4="",B5=""),"Fill every number",IF(OR(NOT(ISNUMBER(B3)),NOT(ISNUMBER(B4)),NOT(ISNUMBER(B5))),"Enter numbers",IF(OR(B3<0,B3>1000,B4<0,B4>1000000,B5<0,B5>1000000,B3<>ROUND(B3,2),B4<>ROUND(B4,2),B5<>ROUND(B5,2)),"Outside limits","OK")))
The first condition checks blanks, the second checks numeric values, and the third rejects negatives, out-of-range numbers and excess decimal places. If Google Sheets reports formula syntax errors, check the sheet’s locale and function reference.
Then in B7:
=IF(B6="OK",ROUND(ROUND(B3*B4,2)+B5,2),"")
With 5 × R$ 80 + R$ 30 you should see R$ 430.00. Invalid inputs result in a blank subtotal. Optionally configure data validation in B3:B5 to reject bad entries during editing as well.
Advertisement
Try cases that could reveal a bug
Hours
Rate
Expenses
Expected
5
80
30
R$ 430.00
1.5
39.90
0.05
R$ 59.90
0
0
0
R$ 0.00
blank
80
30
Message, no total
-1
80
0
Error, no total
1.123
80
0
Error: excess precision
The values are fictional, not real pricing advice. Don’t stop after testing the happy path.
Compare against a browser reference
The following demo was created as a reference for this trail. It isn’t an export from Google Sheets or proof that a spreadsheet became a published app.
Practice: a local-only, interactive quote example
Change the values, calculate, and copy your sample. No real clients, billing or account.
Which version makes the rule clearer? Which helps a reader correct an invalid input? How does each handle changes after a result is calculated?
Where the no-code solution ends
A shared sheet can expose information if permissions are misconfigured. It relies on an account and does not automatically implement separate customer organizations, billing or operational recovery.
Don’t turn this classroom exercise into a multi-user commercial tool without addressing those boundaries.