Formulas
Excel functions, calculated live
Pick a family of Excel functions added in 0.7.0, change an input, and watch each result recalculate. Column F reads every formula back with FORMULATEXT.
Engine @sheetwrite/formulas
- Families
- 8
- Functions shown
- 41
Try it
- Pick a familyFamilyEngineeringEngineeringFinancialStatisticsInformationMath & textLookupRegexLinks
- Change number in B2
Where they run
- Engineering, financial, the Excel 2007 statistics names, byte-width text functions (
LENB,LEFTBand the rest) andGETPIVOTDATArun in the full engine,@sheetwrite/formulas. LOOKUP,TRIMRANGE, the information functions and the new math functions run in both engines.- A reference to another workbook keeps its text and reads the values saved for its link. Update Values asks your app for the linked workbook's current values; a link with no saved values shows
#REF!.
The full engine contains everything in the default engine.
The code behind it
import "@sheetwrite/core/styles.css";
// An "engineering" sheet with a distance in kilometres in B3
// The full engine runs every family on this page// The grid fills its host, so the host needs a heightconst host = document.querySelector<HTMLElement>("#grid");if (host === null) throw new Error("Missing #grid host");host.style.height = "480px";
// A formula is a cell value; the result is read back after the recalculationconst result = { sheet: "engineering", row: 4, col: 4 };});
// When the page removes the host: grid.destroy();