Developers, meet the spreadsheet engine you didn’t know you needed
Marín Jónsdóttir20 February 2025 · 7 min readSpreadsheets are everywhere — whether you’re calculating budgets, managing workflows, or running complex financial models. But what if you could integrate those spreadsheets seamlessly into your applications? Enter GRID’s REST API, the headless spreadsheet engine you didn’t know you needed.
GRID is a spreadsheet technology company. We’ve conducted a lot of research to back up the following claim: Our spreadsheet engine is the most advanced independent spreadsheet engine out there, based on speed, features and functions we support. We’re fully compatible with Excel and Google Sheets, and for the last couple of years our engine has been powering our product Calculator Studio.
Recently, we’ve been developing a new product that makes it possible to turn your spreadsheets into web services, making use of our engine behind the scenes. That means, users are now able to integrate spreadsheet calculations to their own applications.
How does it work?
Here’s a 2 minute video that shows exactly how to turn your spreadsheets into REST APIs. It’s simple:
Go to grid.is
Sign up
Upload your spreadsheet from your computer or connect it to GRID through Google Drive. By connecting the spreadsheet through a live connection, changes to your Google Sheet will be reflected immediately in GRID.
By adding your spreadsheet to GRID, you’ve already got a web service you can program against.
Note: We’re currently working on making it possible for developers to upload spreadsheets through our API directly. That means they only need to sign up once, get an API key, and do the rest through our API.
We have thorough documentation about our REST API for developers and we’re publishing a TypeScript/JavaScript SDK next week to provide convenient and type-safe access to our API — stay tuned!
How do you program against a spreadsheet?
Let’s take a simple example. In the picture below, you’ll see a simple pricing model spreadsheet.

Example API request and its response based on a simple pricing spreadsheet model.
The pricing model calculates a licence fee for a demo SaaS company. The price is based on the number of seats needed and if support should be included or not. In the black box to the left, you’ll see how a request might look to the endpoint of this particular spreadsheet, where we’re updating the values in B2 and B3. The box to the right shows how the response looks from the API. There’s one important thing to point out here: We never change the original spreadsheet data, the updates made in a request are temporary — so there’s no need to worry about altering your spreadsheet!
If you’re curious to try this out, we have documentation where you can try out queries against your spreadsheet in our API environment. When you’ve added a spreadsheet, you can play around with requests to your own spreadsheet. We initially suggest a query based on what we know about your spreadsheet, but you can also write your own queries to get a feeling for the responses.
Who needs a spreadsheet engine?
It’s common that companies underestimate how much they use spreadsheets. The following quote is from an article written by the founder and CEO of GRID a couple of years back:
The reality is that every organization has a “spreadsheet fabric”, a growing collection of workbooks ranging from standalone one-off working documents to a mesh of interconnected workbooks that run critical processes for years — even decades.
This probably sounds familiar. The reality is that spreadsheets are an integral part of companies, often containing critical business logic essential to their operations. If you’re a developer and you’ve ever been asked to rewrite some business logic in code, a spreadsheet engine might be your solution: It enables you to reuse data and logic already stored in spreadsheets.
With the rise of generative AI and next-gen productivity tools, companies are looking to automate their workflows. Why spend time manually updating an Excel file to calculate something, when you can automate the process? That’s where we come in — now you can integrate your spreadsheet calculations to your workflow or application. Let’s explore some use cases!
Use cases
Custom application
Let’s take an insurance company as an example. The company calculates business insurance premiums using multiple spreadsheets for each quote they offer. They’ve been looking to automate these calculations, to save time and increase efficiency of their team that spends most of their day manually searching and updating spreadsheets. They want to be able to call around 100 spreadsheets each time they need to calculate a premium — and the first thing they thought of was writing the rules from scratch in a custom application. If you even begin to scope the project of re-coding 100 spreadsheets in another language, you arrive at big numbers fast. Luckily, this is a real life example and this company found GRID. By turning their spreadsheets to web services, they can integrate their pre-existing calculations to their solution in a much quicker way than writing them from scratch again.
Calculations that live in spreadsheets and are used every day in critical business processes are a common challenge across more sectors than just insurance. Finance, banking, healthcare, logistics, manufacturing, retail, energy, and government agencies all rely on complex spreadsheet-based calculations to drive decisions, manage risk, and ensure compliance.
Workflow automation
Automation software like Zapier or Make can be a game changer for business users. They enable non-devs to automate their workflows and often, these workflows involve spreadsheets. By turning spreadsheets to a web service, you can integrate your calculations to your workflow with no-code tools like the ones mentioned above.

A webhook in Zapier used to integrate spreadsheet calculations into a workflow.
AI
GRID’s spreadsheet engine is uniquely tailored to support AI use cases. We believe a spreadsheet engine is the missing piece in the LLM puzzle because Large Language Models (LLMs) can’t perform reliable spreadsheet calculations without one. We’ve made it possible to integrate your spreadsheets to custom GPTs in ChatGPT and we offer a step-by-step guide in our product to make it as easy as possible. We’ve also integrated our API with Claude for Desktop using a local MCP server.

GRID bridges the gap between spreadsheets and LLMs.
Our engine defines labels in a spreadsheet to make it possible for the LLM to understand the spreadsheet — basically, we don’t call a cell simply B2 but also “Number, Seats” to teach the LLM what cell to update when a user wants to update the number of seats (example from the pricing model earlier). This is why our engine is optimized for AI and by turning spreadsheets into web services, users can now integrate them to their AI solutions.

An example of GRID’s label identification.
If you’re building an assistant using OpenAI’s Assistant API for example, assistants support function calls. That unlocks the possibility to integrate reliable spreadsheet calculations to your assistant: Imagine a chatbot on a website that acts as a sales representative and generates customized quotes for your leads, or an internal financial planning and budgeting assistant that has access to several spreadsheets to assist financial teams creating budgets, track expenses and more.
Another big advantage of defining labels in a spreadsheet is that it converts the data into “human language". LLMs are exceptional at language, so they could use an overview of labels to search for specific things in a pool of different spreadsheets (think about the spreadsheet fabric mentioned above). Imagine if you could ask an internal AI agent “What will our cash flow look like in Q2 2026 if our revenue grows by 5%?” and the agent would know where to find the answers in different spreadsheets because it can search for labels and their synonyms.
Templates
Last but not least, we have an endpoint in our API that’s called export. It makes it possible to apply changes to your spreadsheet and export it with the changes. Normally when changes are made to a spreadsheet through our API, we never save the changes because we treat them as scenarios — but when the export endpoint is used, we open up the possibility for users to keep the changes.
Imagine a financial advisor that needs to do a portfolio expense comparison based on several statements in a PDF form. LLMs are great at reading PDFs and extracting values from them. The advisor could have a template spreadsheet that contains the relevant fields that need to be filled out, and then make use of a LLM to extract the values and fill in the template. Once completed, the advisor could export the spreadsheet, making it easy to review and present to clients. This workflow would make the advisor’s work much more efficient and scalable.
Leverage your existing calculations
The wide range of use cases mentioned above are just a few examples — the beauty of APIs is that you can ‘plug-and-play’ your spreadsheets wherever needed. Chances are, a spreadsheet engine wasn’t the first solution that came to mind when tackling your problem. But maybe it should be. Instead of reinventing the wheel, why not leverage the business logic you’ve already built?The examples I’ve mentioned in this article are mostly from conversations we’ve had with our early customers. If you think you have a use case for GRID’s REST API, we’d love to hear from you.
Spreadsheets run the world and now your applications can run spreadsheets. Sign up and turn your first spreadsheet into an API.
News
Updates and announcements
27.11.2026
The Python was right. The spreadsheet was wrong.
On 400 spreadsheet tasks, the agent without an engine scored 78% and the agent with GRID scored 90.75%. When we required formulas where the reference workbook had formulas, the same workbooks scored 54.25% without an engine and 87% with GRID.
19.11.2026
How AI builds a spreadsheet: openpyxl, then 430 MB of LibreOffice
In September, Simon Willison went poking around his disk and found 1.7 GB of runtime inside OpenAI's Codex desktop app, since renamed ChatGPT. Next to Python, Node and git sat a complete headless LibreOffice: 430 MB of office suite, shipped so the agent can work with documents. This did not surprise us. We have watched this pipeline since the first AI spreadsheet experiments, and it is still how most of the industry builds spreadsheets with AI. It made sense as a stopgap. It doesn't anymore: next to an engine built for the job, it is less accurate, far slower and more than a hundred times bigger. The recipe Ask an AI agent for an Excel model and it will almost always write the file with openpyxl, the Python library all over its training data. openpyxl writes formulas but cannot calculate them, so the formula cells hold no values. Anything that reads the stored values sees blanks: the Python data library pandas, file previews, and the agent itself, checking its own work. And the model writes formulas the way a person types them, not the way Excel stores them. Leave out the _xlfn. prefix Excel expects on XLOOKUP inside the file and the cell opens in Excel as #NAME?. Write a LET without its _xlpm. prefixes, or a spill reference like A1#, and Excel greets the whole file with "We found a problem with some content". So the pipeline needs something to calculate the file, and the answer is nearly always LibreOffice. Anthropic's public xlsx skill runs LibreOffice to recalculate the workbook. Alibaba's QwenPaw agent ships an adapted copy of the same script. Moonshot's Kimi checks its files against LibreOffice's recalculation, according to an extracted copy of its skills. OpenAI bundles the whole suite into its desktop app. LibreOffice is free, it is already there, and it opens xlsx. None of that means it calculates like Excel. So how close does it get? Missing one case in eight Last week we published the GRID Spreadsheet Benchmark: over 100,000 test cases from eight open source test suites, 13 engines, every case checked against Excel itself. LibreOffice matches Excel on 87.4% of them. That sounds respectable, and LibreOffice Calc is a good spreadsheet app. The test is deliberately hard: it is built from edge cases, not the SUMs that fill most of a real model. But edge cases are where a model goes quietly wrong, matching Excel on them is a high bar, and the last few percent are where the hard work is. 87.4% is 126 misses in every 1,000 cases. The GRID engine gets 1.2 wrong. LibreOffice isn't sloppy. It is a different spreadsheet app with its own opinions. On its own project's test suite it agrees with Excel only about 84% of the time, because many of those tests expect LibreOffice's answer: it converts units Excel has never heard of, and it finds interest rates where Excel gives up with #NUM!. Of the nearly 500 Excel functions in the benchmark, only 16 pass every test in LibreOffice. In GRID, 439 do. Then the tool starts dictating the spreadsheet. Anthropic's skill tells the model to never use XLOOKUP, XMATCH, SORT, FILTER, UNIQUE or SEQUENCE, saying the LibreOffice it runs can't evaluate them. LibreOffice has handled them since 2024, but the rule stands: the agent builds an older, worse spreadsheet to suit its calculator. "We found a problem with some content" In most of these pipelines, when LibreOffice recalculates a file, it also saves it, and it saves it the way LibreOffice understands it. Usually the file still opens in Excel. Sometimes it doesn't. Take the sensitivity table, a fixture of every financial model: a what-if data table showing, say, the implied share price under different WACC and terminal growth assumptions. Put a workbook with one through a pipeline that saves through LibreOffice, like QwenPaw's, open it in Excel, and you get "We found a problem with some content". LibreOffice has written the table back as a formula Excel doesn't have. Click Yes, and Excel repairs the file by turning every cell of the table into a fixed number. The numbers are right for today's inputs. Change the WACC and nothing moves. The model still looks finished. It just stopped being a model. Anthropic's skill was recently changed to recalculate on a copy and write only the values back into the file. That is a sensible patch, and an admission that LibreOffice can't be trusted to save the file. It is still trusted to calculate it, and to tell the agent the file is fine. That trust is misplaced too, because LibreOffice waves through problems it didn't cause. Ask an agent for a table with years as column headings, 2025 and 2026, as in nearly every financial model. openpyxl writes the headings as numbers, and Excel requires table headings to be text. Name a table Q1 and it is the same story, since Excel reads that as a cell address. LibreOffice opens these files, recalculates them without complaint and saves them. The agent's check passes. Excel opens the file with "We found a problem with some content". 430 MB and a second and a half Even when it gets the answer right, LibreOffice is the wrong shape for the job. Every check boots a desktop office suite in headless mode, loads the file, calculates, and writes the file back. On nearly 1,800 benchmark workbooks, run on the same machine, that took a median of 1.6 seconds per workbook. The GRID engine took 18 milliseconds, and it doesn't need to save: it holds the workbook in memory and writes the file once, when the agent is done. These are small workbooks, so most of that time is LibreOffice starting up, and today's agent skills pay it on every check. Anthropic's starts it twice. The obvious fix is to keep it running. In a separate test it still took about 80 milliseconds per workbook, and now the client keeps an office suite running in the background whenever a spreadsheet might come up in any thread. Then there is the weight. ChatGPT's headless LibreOffice is 430 MB. The GRID engine is a 3.5 MB package that runs in process, in Node or in the browser. The embedded LibreOffice may actually be doing other jobs too, like rendering documents and converting them to PDF. But those jobs have lighter tools as well. SuperDoc builds, edits and renders Word documents in the browser: an engine for DOCX, the way GRID's is for XLSX. A couple of small JavaScript libraries turn DOCX into PDF without a desktop suite. However you slice it, 430 MB of LibreOffice in a client is a kludge. Calculate it right AI is about to write more spreadsheets than people ever did. Those files will be opened in Excel, sent to clients and used for decisions, and Excel is where the numbers are checked. If an agent's model shows one figure and the same file shows another in Excel, the user doesn't conclude that LibreOffice and Excel differ on a corner case. They conclude the AI got it wrong. They start rechecking every number, and they stop trusting the next model before they open it. One wrong cell is enough to spend the trust that was supposed to save them the work. The GRID engine calculates the way Excel does, in milliseconds, without an office suite attached. The benchmark and its harness are open, so check the numbers. If you build agents that write spreadsheets, talk to us.