Insert a Working Formula Instead of a Frozen Number

The November expense report came back from Logistics with one line fixed: a travel cost entry corrected from last week's placeholder. Right next to it, the total across all four department columns still held last month's number. It sat untouched by the fix.

The Total That Doesn't Follow the Correction

Every month end, the finance team lead imports the department's Excel budget workbook into Synap Editor. Then the document goes to the three department leads: Marketing, Sales, and Logistics. It reaches the director only after all three sign off. The workbook always arrives the same way: a totals row sits at the bottom. It is built in Excel with a SUM formula running across all four department columns.

Once the workbook is imported, that totals row shows last month's number as plain text. It reads correctly at the moment it lands, the same digits that were in the Excel file.

This week the Logistics lead opens their column and corrects a travel cost entry that was wrong. Their column updates. The total sitting right next to it does not move. It still shows the number from before the correction, because nothing behind that text recalculates it. The Logistics lead closes the document assuming the fix is done. Nothing on their screen hints that the total never heard about it.

Before the report can go to the director, the finance team lead has to catch the mismatch first. That means reopening the original workbook or adding the columns by hand. Sometimes it means messaging Logistics just to confirm the number is right. The Marketing and Sales columns might be correct. Nobody downstream can tell at a glance which total they can actually trust. Every correction from any of the three leads means the same manual check. That happens every month, for as long as the total stays frozen. Each month the check lands on whoever happens to open the report first. The extra work moves around, but it never goes away.

Why Does a Formula Only Work When Typed?

The totals row stops recalculating because of where the number came from, not because of how it looks. Synap Editor turns an equals sign into a live formula only at one moment. That moment is when someone types it into a cell themselves. Type a SUM formula directly into a cell, and the editor builds a working formula node around it. That node recalculates whenever the cells it references change.

A number that arrives already computed is a different case. It might be pasted in, imported from a workbook, or dropped in from a backend calculation. Either way, it lands in the document as plain text. The digits are correct at the moment they arrive. Nothing ties that text back to the formula that produced it. The SUM formula that built the number in Excel does not travel with it into the document. This holds regardless of how the number got there. It makes no difference whether it arrived by import, paste, or backend calculation.

Any fix for the frozen total has to close that gap between where a formula is created and where it is typed into a cell. It has to bridge where a formula is created and where it is typed into a cell. A number computed somewhere else needs a way to arrive in the document still carrying its formula. It should not arrive as just the one-time result of running that formula.

Give a Cell a Formula It Never Typed

Formula Parser closes that gap. It accepts a formula string from outside the editor. That is the same kind of string a workbook stores behind a SUM cell. That string becomes the same live, editable formula cell a person gets by typing the equals sign themselves.

The Logistics lead never has to retype anything. The finance team lead no longer has to choose between checking the total by hand. Nor do they have to ask Logistics for the workbook again. The formula a cell holds in the document is the same formula it was built with. It is carried straight from wherever it was computed.

This matters only when the number did not come from someone composing it at the keyboard. A colleague building a brand-new formula inside a cell still does that by typing the equals sign. Or they open the formula editor dialog and compose the expression visually with MathType. Formula Parser is for the other case. It is for a formula that already exists, computed elsewhere, before the document is ever opened. That is the gain. The document treats a formula computed elsewhere the same way it treats one typed by hand. For the Logistics lead, nothing about entering the correction changes. The difference shows up only in what happens next, in the total nobody has to fix by hand.

The Report Whose Total Keeps Up

The November workbook comes in the same way it always has. It is imported at month end and shared with Marketing, Sales, and Logistics. It is due to the director once all three columns are filled in. The totals row still carries its SUM formula after import. It is the same formula that built it in the original Excel file.

The Logistics lead corrects the same travel cost entry as before. This time the total sitting next to their column moves with it, right there. The finance team lead never touches the totals row at all. The finance team lead opens the report and glances at the total. There is nothing left to check, so they forward it straight to the director.

[[shot: The expense report totals row updating beside a department column a lead just corrected, the SUM formula still driving the number]]

Nobody reopens the workbook to recompute the sum. Nobody sends a message back to Logistics asking for a corrected file. The document that reaches the director already carries a total that matches what all three department leads entered. That total was never frozen to begin with. Next month's report will follow the same path, with the same formula still attached.

Loading Formula Parser and Wiring the Insert Button

Formula Parser ships as a script file. Add it to the page after the editor's own scripts:

<script type="text/javascript" src="../externals/formulaParser/formula-parser.min.js"></script>

Without it, the Excel function input field does not appear in a cell. Formulas carried in on import also stay out of reach.

Register a custom toolbar button to insert a formula string from your own data. Use its onClickFunc instead of waiting for someone to type the equals sign.

{
  onClickFunc: function (event) {
    // insert your own formula string here, in place of the default '=' entry
  }
}

The default equals-sign entry still works for anyone composing a formula by hand. MathType's formula editor dialog stays available separately for that case. This button is for a formula string that already exists before the click happens.

The buttonDef and Formula Parser pages in the manual cover the rest. That includes naming the button, adding it to editor.toolbar, and the full script source.

Common questions

Does the Excel function box show up on its own?
It does not show up on its own. If the formula-parser script is not added to the page, the Excel function input field is not displayed in a cell.

If I import a workbook with SUM formulas, do they keep calculating?
Without the formula-parser script, Excel document functions cannot be used on import, which is what leaves a totals row as plain text. Adding the script is what lets those formulas be used rather than fixed on import.

Can a formula land in a cell without anyone typing the equals sign?
Yes. Formula Parser accepts a formula string from outside the editor and turns it into the same live, editable formula cell a person typing the equals sign would get.

Where does the script file that makes this work actually come from?
It is formula-parser.min.js, included under externals/formulaParser with the editor, and is added to the page with a script tag pointing at that path.