Faith Forge LabsIraq

A formula in the workbook is not necessarily a value the receiver can read

A spreadsheet can contain a correct formula and still present an unusable result to another application. Some receiving tools read the last stored calculation result rather than calculate the formula themselves. A report that looks correct after opening in a full spreadsheet application may therefore differ from what an automated import saw.

The following fictional investigation concerns a quotation-summary export. It uses simple approved arithmetic and a controlled workbook. No customer file or production quotation is needed to identify the boundary.

Compare the formula with the stored result

Line L-24 has quantity 4 and approved unit amount 25 in the agreed currency. The intended line amount is 100. The generated workbook stores =B2*C2 in its amount cell. Its stored formula result, however, is zero.

The receiving summary tool reads that stored result and displays zero. It does not contain a spreadsheet calculation engine. Opening the workbook in an application that recalculates the formula displays 100, which initially makes the import appear unreliable.

The investigation inspects both representations: the formula text is correct for the line, and the cached value the receiver reads is zero. The source quantity and unit amount remain 4 and 25. Nothing supports changing the customer's price to make it agree with the receiver's zero.

Check what the generator promises

In this example, the exporter uses XlsxWriter. Its formula documentation explains that it does not calculate formula results. By default it stores zero as the result and marks the workbook for recalculation; a result can also be supplied explicitly.

The generator is therefore not a calculation service merely because it can write a formula. The receiving tool also does not promise to recalculate it. The missing step lies between the two inspected contracts.

Asking someone to open and save every export in a desktop application would create a new manual dependency. It might be an agreed operating process in some circumstances, but it is not an automatic or invisible guarantee on which this receiver can rely.

Decide which deliverable this receiver actually needs

The receiving summary needs approved numeric line amounts, not editable formulas. Staff still use a separate formula workbook for their agreed review task. The organisation chooses two clearly named outputs: a calculation workbook and a value-only receiving export.

For the receiving export, the application computes the approved arithmetic from validated quantities and amounts and writes the result as a number. It does not attempt to execute arbitrary formulas found in uploaded documents. More complex pricing or rounding would require its own approved rules and examples.

The calculation workbook remains distinguishable and retains its formula. The receiving file's name, heading and import instruction make its purpose clear so staff do not accidentally interchange the two deliverables.

Follow the corrected value into the summary

A controlled value-only export for L-24 contains quantity 4, unit amount 25 and numeric line amount 100. The receiving tool reads the file without opening a spreadsheet application. Its resulting record shows L-24 with amount 100. Reopening the saved receiving record produces the same result.

A second line L-25 has an unconfirmed unit amount. It is held for clarification and is not exported as a zero-priced line. Zero, blank and unknown are not made interchangeable to keep an import running.

A third supplied workbook contains a formula outside the approved calculation scope. It is referred for review rather than evaluated through this export path. The retained original workbook and the earlier zero-valued result remain available in the investigation evidence, with access appropriate to their contents.

Prevent the same ambiguity in the next handover

The export contract identifies the columns, their types, the calculation owner and whether the recipient reads values or formulas. The acceptance example includes a known amount, an unknown price and an unsupported calculation. It also specifies the recipient's actual loading path, rather than relying on the exporting developer's desktop view.

Changing the workbook library or receiving tool can change this boundary. The operating notes should explain why the two outputs exist and which one the receiver accepts. A successful file download is not the final check.

Integrations can examine these apparently small differences between tools. When reporting a mismatch, provide a safe example of the source values, the formula or stored value, and the method used to read the file. The useful question is what the receiving process actually obtained.