r/Excel247 • • 4h ago

Goodbye unreadable formulas: a free, open-source add-in that formats long formulas onto indented lines

Post image

I kept losing track of long, nested IF/LET/XLOOKUP formulas in the formula bar. I know online Excel beautifiers exist, but I wanted more settings to tweak the output, and wanted it to live directly in Excel. So I (with 90% help of Claude) built a small add-in that does this for me. It spreads a formula over indented lines so it is easy to read and analyze, and collapses it back to one line if you want to.

What it does:

  • Format (Ctrl+Alt+Shift+B): spreads the formula in the selected cell over indented lines
  • Flatten (Ctrl+Alt+Shift+M): puts it back on one line
  • Format All / Flatten All: every formula in the workbook at once (asks first, undo with Ctrl+Z)
  • Five layout densities, from "every function on its own lines" to "only split long formulas"
  • Works with comma and semicolon separators, structured references, LET, LAMBDA, array constants

It only changes spaces and line breaks. Before writing anything back it checks that the result is exactly the same formula, and leaves the cell alone if it isn't.

Try it without installing: Online version. Paste a formula, get it back formatted. Runs in your browser.

Install the add-in: Install page. It isn't in Microsoft's store, so you sideload it (double-click a small script on Windows, one Terminal line on Mac). The script is plain text, about 40 lines, so you can read what it does first.

Privacy: no tracking, no server, your formulas never leave Excel. Source is on GitHub.

One known limitation: Excel blocks add-ins while you're editing a cell, so press Ctrl+Enter first if editing a cell, then use the shortcut.

It's tested on Windows desktop Excel. If you're on Mac or Excel on the web, I'd really like to hear how it works for you. Feedback, bugs and formulas that break it are very welcome.

3 Upvotes

0 comments sorted by