Angular spreadsheet

An Excel-compatible spreadsheet for Angular: 494 functions, dynamic arrays and xlsx round trips.

Spreadsheet

Early access

$399

Per developer, paid once, lifetime updates

A working starting point

npm install @birchui/angular @birchui/core @birchui/spreadsheet
Show spreadsheet.component.ts
spreadsheet.component.ts
import { Component, DestroyRef, ElementRef, afterNextRender, inject } from '@angular/core';
import { createSpreadsheet } from '@birchui/spreadsheet';

const workbook = {
  version: 1,
  sheets: [
    {
      name: 'Loan',
      cells: {
        A1: { value: 'Principal' },
        B1: { value: 250000 },
        A2: { value: 'Annual rate' },
        B2: { value: 0.0625, style: { numberFormat: '0.00%' } },
        A3: { value: 'Payment' },
        B3: { formula: '=PMT(B2/12, 360, -B1)' },
      },
    },
  ],
};

@Component({
  selector: 'app-spreadsheet',
  standalone: true,
  template: '',
  styles: ':host { display: block; height: 520px; }',
})
export class SpreadsheetComponent {
  constructor() {
    const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;
    let widget: ReturnType<typeof createSpreadsheet> | undefined;
    afterNextRender(() => {
      widget = createSpreadsheet(host, {
        licenseKey: 'LQ1.your-key',
        height: 520,
        data: workbook,
      });
      widget.on('cellChange', ({ address, newValue }) => console.info(address, newValue));
    });
    inject(DestroyRef).onDestroy(() => widget?.destroy());
  }
}

Measured: across 1,520 test formulas, 95.5% of results match LibreOffice. A dependency graph recalculates only the cells an edit affects.

How it fits Angular

Birch UI Spreadsheet combines a formula engine with a virtualized, keyboard-complete sheet. Formulas, styles, merges and frozen panes survive an xlsx round trip. Angular mounts it through the generic factory of its adapter.

The Angular package ships standalone OnPush components with signal inputs and output(). The spreadsheet runs outside the zone, so scrolling never triggers change detection.

Inputs merge into one options object. Pass a new array or object to change one; mutating in place is not detected. On the server the host renders empty. The widget is created in afterNextRender, after hydration, in zone.js and zoneless apps alike.

Questions

Does the Angular spreadsheet support LAMBDA?

Yes: LET, LAMBDA and dynamic arrays such as FILTER, SORT, UNIQUE and XLOOKUP, with #SPILL! when blocked.

Is it in early access?

Yes. It is a feature-complete v0.1; structured references and the spill operator are on the roadmap.

Does the Angular spreadsheet work without zone.js?

Yes. provideZonelessChangeDetection() needs no extra setup; outputs re-enter the zone only when something listens.

Is it built with ng-packagr?

Yes, in the Angular package format, tested against Angular 21 in CI.