# Explain

See the values behind a formula and follow them back to their inputs.

## Open Explain

Select a formula cell and choose **Formulas › Explain** or **View › Explain**. From the grid, press Ctrl+Alt+I (Control+Option+I on macOS) to explain the active cell. Press it again on the same cell to close Explain.

The tree shows the formula, its result, and the values it reads. Expand a referenced formula to follow it back through the calculation. Hover a reference to see its label and mark it on the grid. Open a range in place to see a sample. For a criteria range, use **+N more** to see the next four matching cells.

## Follow the marks on the grid

Explain pins its subject to the yellow anchor cell. The anchor stays put when you move the selection. Click the anchor chip above the sheet tabs to return to it. Select another cell and run **Explain** again to move the anchor. Click the anchor chip’s **×**, or choose **Formulas › Remove arrows**, to clear it.

A ring and a line mark what the anchor reads; arrowheads point to cells it feeds. Use **Formulas › Trace precedents** or **Trace dependents** to trace either direction. Repeat the trace command on the anchor to add another level. References on other sheets appear as chips above the tabs. Click one to visit its cell or range without moving the anchor.

## Step through a formula

Choose **Formulas › Evaluate formula…** to start on the active cell. With the [Map](https://jsheets.app/docs/map.md) full window, **Step through on the grid** returns to the grid and starts evaluation for the formula shown. With Explain focused on the grid, the arrow keys browse the tree and Enter starts evaluation on the focused formula line. Click the panel or use F6 to focus it.

| Action | Key |
| --- | --- |
| Next step | Enter |
| Previous step | Shift+Enter |
| Step into a referenced formula | Right arrow |
| Step out of a referenced formula | Left arrow |
| Stop stepping and return to the tree | Escape |

The current part of the formula is underlined. Values appear as you reach them, and untaken branches such as the other arm of an `IF` are dotted and skipped. Grid marks and sheet chips show the references for the current step. Escape again closes Explain.

To see a formula and its inputs as they were before an edit, use **Explain before** in [Changes](https://jsheets.app/docs/changes.md).
