App Garden

Unit-aware Calculation Checker

How to check the units in an Excel calculation

A step-by-step run through the add-in on a load schedule with two unit errors in it. Checking the active sheet is free and unlimited — nothing in this guide up to the last two steps costs anything.

What the problem is

Excel has no concept of a unit. =B4+C4 where B4 is 250 mm and C4 is 0.25 m returns 250.25, and nothing anywhere objects. Neither does mixing kN with N, or summing a moment in N·mm with one in kN·m. The arithmetic is correct; the answer is meaningless, and it looks exactly like an answer.

This add-in reads the units you have already written — in column headers, row labels, units rows, number formats and cell notes — follows them through your formulas, and reports the places where two of them contradict each other.

Before you start

Step 1 — Open the pane

Open the workbook, then Home › Unit check. Two buttons, and a collapsed section stating the limits of the check before you have run it.

The add-in pane, showing Check this sheet, Check whole workbook, a collapsed scope section, and the free-tier note.
“Free — this sheet, unlimited.” Checking and explaining one sheet is not a paid feature and will not become one.

Step 2 — Check the sheet

Press Check this sheet. It reads the used range, recovers what units it can, and reports only the contradictions.

The pane after a check: 2 problems, 1 note, then finding cards UN-01 for B10 and UN-02 for B5, each with a Go to cell button and the declarations they were read from.
Two problems and one note, on a ten-row sheet. The count is the whole summary — there is no score, because a unit contradiction is not a matter of degree.

A sheet with no units in it at all produces one message saying so, not a hundred findings. And a clean result is worth as much as a dirty one: the tool is built so you can watch it stay silent on a spreadsheet you know is right.

Step 3 — Read a finding

Two finding cards: B10 adds a moment in kNm to a force in kN, and B5 combines kN with N so the result is out by a factor of 1000.
Go to cell selects the cell in Excel. The grey lines under each sentence are the evidence, and they are the part worth reading.
  1. The rule and the cell. UN-01 · Load schedule!B10. UN-01 is two quantities that cannot legally be added at all; UN-02 is the same quantity in two different prefixes.
  2. What is wrong, in one sentence, with both units named: “B5 combines a value in kN with one in N; the result is out by a factor of 1000.”
  3. Where each unit came from. “kN declared at Load schedule!B2 (D4) against N declared at Load schedule!B3 (D4).” D4 is the declaration source — here, the row label. You can check the tool rather than take its word.
  4. The path through the formula, cell by cell.
  5. A suggestion, where there is an unambiguous one — express both in N, and multiply the kN term by 1000. It is a suggestion in words; nothing is written to your sheet.

Red down the left edge is a contradiction. Amber is advisory — SF-01 and SF-02 are not about units at all, but about the digits a cell displays against the digits behind them.

Step 4 — Ask where the units came from

Units found lists every unit the add-in recovered, the cell it applies to, and the route it came by. On a clean sheet this list is the most useful thing in the pane; on a dirty one it is the answer to “says who?”.

The Units found section listing five cells with their units and the label each was read from, above an Assign a unit to the selected cell field.
Five units, each traced to the label it was read from. Under the list, a box to assign a unit to the selected cell by hand when nothing on the sheet declares one.

Units are recovered in this order of confidence:

  1. A unit you assign yourself.
  2. A custom number format, such as 0.00" kN".
  3. A column header, such as Moment (kN·m).
  4. A row label, such as Yield stress, MPa.
  5. A units row under the header.
  6. A cell note.
  7. A defined name, such as Fy_MPa.

Step 5 — Write the units into the sheet Pro

The paid tier can put what it worked out back into the workbook, so the next person to open it does not have to run the add-in to see the units.

The Write units into the sheet preview: five cells would have their unit written into the number format, three notes would be added to flagged cells, no value and no formula is changed.
Counted before it is done, and it says plainly what it will not touch: no value and no formula is changed. Cancel costs nothing, and Write it can be undone from the pane.

The rest of the paid tier is the whole workbook in one pass, units you assign yourself saved into the file, the report as an inserted worksheet, and CSV export.

Step 6 — Entering a licence key

The licence section expanded, showing the key field, the Activate button and a link to prices.
Paste the key from the end of checkout and press Activate. It takes effect immediately — no restart.

What it will not do

This section is in the pane as well, under What this check does and does not cover, because a checker whose limits are only on a website is a checker whose limits nobody reads.

The scope section expanded in the pane, stating what the check compares, that cells with no declared unit stay silent, and the pairs dimensional analysis cannot separate.
Stated in the pane, next to the findings, rather than only here.

If something looks wrong

Email support@appgarden.co.uk, and say which platform you are on and what the pane showed. A sheet that produced a wrong finding is the most useful thing you can send, and the one most wanted — but only send one you are content to share, and read the privacy notice first.