# Excel import and export

> Layerz exports a model as an Excel workbook with live formulas, the same as the web view, and imports an existing workbook into a recalculated model.

## Export

The Excel export is the web view: the same tabs, the same lines, the same numbers. It is not a dump of values:

- every formula is a live Excel formula, so the workbook recalculates when an input changes;
- each root section and each dashboard is a sheet, in the app's tab order; charts sit inside their dashboard sheet;
- lists, totals, folded groups, styles and number formats carry over;
- the export reads one branch (the base or a scenario), and the cutover is a named date on the intro sheet.

The few constructions Excel cannot express live (a cross-scenario reference) keep their computed value and are listed in the export report.

## Import

An existing workbook imports into a new model. The import is deterministic (no AI guesses the structure): it reads the sheets, recalculates the workbook to know its true values, and rebuilds them as Layerz lines, lists and scenarios.

- Repeated blocks become list lines, selector cells become branches, guards such as `IFERROR` disappear (the formula language has no error values).
- The import reports its fidelity by scenario and keeps the source workbook with the model, so the rebuilt model can be compared with the original, cell for cell, at any time.
- A workbook whose period headers carry no date asks once how to anchor them.

The goal of a rebuild is the same results, not the same cells: a model that spells out hundreds of rows in Excel is often a few dozen lines in Layerz.
