What is your goal?
I am building a Shopify order-items logger in Make.
For each Shopify line item, I retrieve the product cost and VAT rate from a Google Sheets table called Product_Costs, calculate the financial values, and then add a row to another Google Sheet.
I need to calculate:
- line_revenue_net
- total_cost_net
- estimated_margin_net
- estimated_margin_pct
The expected calculation for this test item is:
Quantity: 1
Shopify discounted unit price: 209.00
VAT rate: 22
Unit cost net: 105.40
Expected results:
line_revenue_net = 209 / 1.22 = 171.31
total_cost_net = 1 × 105.40 = 105.40
estimated_margin_net = 171.31 − 105.40 = 65.91
estimated_margin_pct = 65.91 / 171.31 = approximately 0.385
What is the problem & what have you tried?
The scenario structure is:
Google Sheets Search Rows
→ Shopify Get an Order
→ Iterator
→ Google Sheets Search Rows on Product_Costs
→ Tools / Set Multiple Variables
→ Tools / Set Multiple Variables for margin percentage
→ Google Sheets Add a Row
The modules complete successfully and appear green, but the Tools module returns empty values or NaN.
Google Sheets currently returns these values:
vat_rate = 22
unit_cost_net = 105,40
unit_cost_gross = 128,588
selling_price_gross = 239,00
The Google Sheets Search Rows module currently uses:
Value render option: FORMATTED_VALUE
Date and time render option: FORMATTED_STRING
Therefore, some decimal values may be returned as formatted strings with a comma decimal separator.
We tried using native green Make math operators instead of typing *, /, + and - manually.
We also tried parseNumber(value; ,), but the output was still empty or NaN.
We initially tried:
round(calculation; 2)
but were then told that Make round() may accept only one argument, so we tried:
round(calculation × 100) ÷ 100
We are unsure about the correct syntax and the best way to handle values coming from Google Sheets. line_revenue_net:
(Quantity × Discounted unit price after all discounts: Amount)
÷
(1 + VAT rate ÷ 100)
total_cost_net:
Quantity × unit_cost_net
estimated_margin_net:
line_revenue_net − total_cost_net
estimated_margin_pct:
estimated_margin_net ÷ line_revenue_net Could someone please clarify:
-
Should the Google Sheets Search Rows module use UNFORMATTED_VALUE instead of FORMATTED_VALUE so that 105,40 is returned as a numeric 105.4?
-
If UNFORMATTED_VALUE is used, should parseNumber() be removed completely?
-
What is the exact valid Make formula for rounding a result to two decimal places?
-
Can Set Multiple Variables safely perform these calculations directly, or would separate Set Variable modules be more reliable?
-
What exact formula would you recommend for each of the four calculations above?
A screenshot of the scenario, the Tools formulas, and the Google Sheets output is attached.
Thank you.
Error messages or input/output bundles
Tools module output:
line_revenue_net_calc: empty
total_cost_net_calc: empty
estimated_margin_net_calc: NaNNaN); 2
In other runs, Google Sheets received:
NaN
or the calculation expression as plain text instead of a calculated number.

