Excel Experiments
Mathematical and computational experiments that push spreadsheets far beyond their usual job: fractals, 3D projection, simulation, and custom functions, built entirely in Excel.

Excel is usually described as a tool for accounting. It’s also a grid of a million tiny calculators that can all talk to each other, which makes it a surprisingly capable environment for mathematics, graphics, and simulation. These experiments are attempts to find the edges of the program.
Formula-driven fractal generator
A Mandelbrot set visualizer built entirely in Excel, using custom formula logic and conditional formatting, with dynamic zoom and color mapping. Each cell stands for a point on the complex plane and repeatedly applies
counting how many iterations it takes for to escape past 2. Points that never escape belong to the set; the escape count of every other point becomes its color, and conditional formatting turns the grid into the image.

The same escape-time algorithm runs below in your browser. Click anywhere to zoom in.
Scroll into view to render
Custom LAMBDA functions
Using Excel Labs, I write bespoke functions with
LAMBDA and LET so complex logic can be reused like any built-in function. WRAPROWS.UNEVEN, for example, turns a
single stacked column of items and their attributes into a tidy table, even when each item has a different number
of attributes, which the built-in WRAPROWS can’t handle.

The function body uses SCAN to carry each item label down to its attributes, then REDUCE and VSTACK to
assemble one row per item:
=LET(
list, C7:C25,
delimiter, "item",
item_scan, SCAN(
0,
IF(SEARCH(delimiter, list) = 1, list),
LAMBDA(x, y, IF(IFERROR(y, "") = "", x, y))),
stack_list, HSTACK(list, item_scan),
filtered_list, FILTER(stack_list, NOT(ISNUMBER(SEARCH(delimiter, CHOOSECOLS(stack_list, 1))))),
items, CHOOSECOLS(filtered_list, 2),
unique_items, UNIQUE(items),
attributes, CHOOSECOLS(filtered_list, 1),
HSTACK(unique_items, DROP(REDUCE("", unique_items,
LAMBDA(x, y, IFNA(VSTACK(x, TOROW(FILTER(attributes, items = y))), ""))), 1)))
Rotating 3D projections
A rotating 3D cube rendered on an Excel scatter chart. The cube is eight points; each frame multiplies them by a rotation matrix. For a rotation by about the vertical axis, that matrix is
It then projects the result onto the chart’s two dimensions. VBA advances the angle to animate the motion and adds interactivity.

Monte Carlo simulations
Using Python in Excel, I simulated thousands of potential stock price paths to visualize volatility and the spread of possible outcomes over time, with the median path highlighted against the cloud of simulations.

Warehouse inventory heatmap
A live-updating heatmap of warehouse utilization by location, built for real-time decisions about space planning and stock movement. Every storage location on the floor plan is colored by how full it is. Search panels look up what is stored in a location (with its capacity and percentage full) or every location that holds a given part, and a running analysis lists empty and full locations.

Calendar heatmap
A GitHub-style calendar heatmap for tracking daily progress across a year, combining date logic with conditional formatting. The same layout supports different color scales for different kinds of data.
