Introduction
If you want to export the cost or sale of a quantity of a product, (let's say you've bought 5 units and wish to export the total cost, sale and profit), you can use a dynamic formula in your SAS Export settings to force Google Sheets to calculate totals based on the Quantity column.
In the listing, change the Quantity to 5 and press Enter to calculate the prices

Identify Columns: Note which columns in your Google Sheet contain Quantity (E), Cost Price (F), Sale Price (G) and Profit (H) then add the number of equivalent Formula rows beneath

Add Formula to SAS: In your SAS Field Mapping settings, use the following formula for your "Total" column. As an example, the formula for exporting the Total Cost Price to column I would be:
=INDIRECT("F"&ROW()) * INDIRECT("E"&ROW())
This formula takes the original Cost Price and multiplies it by the Quantity.

Test & Write Headers: If this is a new sheet, make sure you test and write the headers to your sheet, or, if you're editing an existing sheet, make sure your columns and values line up. Note in the second row how the Quantity Cost, Sale, and Profit correctly export to columns I, J and K but the headers are incorrect.
Export to Google Sheets
To export the quantity, simply configure your Profit Calculator and click Export:
If not already done, make sure your columns are named correctly - testing and writing headers then exporting immediately will leave you with the below.
