Plus plan

Formula helper

Write, explain or fix a spreadsheet formula
POST
/v1/ai/documents/formula

About this tool

You describe what you want to calculate, and AI writes the formula for Excel, Google Sheets or LibreOffice. It can also explain a formula or fix one that fails. The brackets and starting = sign are checked. The text is written by AI, so read it before you use it.
For example, you type: add up column B when column A says Spain.

How to use it

  1. Choose this tool.
  2. Type what you want, or paste your formula. You can also add a sheet file.
  3. Choose the program and whether to write, explain or fix.
  4. Press Generate.
  5. Copy the formula.

What you get back

You get the formula, with an explanation, that you can copy into your spreadsheet.
TEST IT LIVE

Try Formula helper in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
AI
Plan
Plus
Method
POST
Endpoint
/v1/ai/documents/formula
Tool ID
ai.documents.formula
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Ai
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/ai/documents/formula" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'on_unsupported=error' \
  -F 'instructions=example' \
  -F 'quality=standard'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.ai.documents.formula({
    "on_unsupported": "error",
    "instructions": "example",
    "quality": "standard"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->ai()->documents()->formula([
    'on_unsupported' => 'error',
    'instructions' => 'example',
    'quality' => 'standard',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Write, explain or fix a spreadsheet formula for Excel, Google Sheets or LibreOffice; code checks the brackets, the starting = and the argument separator. Readiness: unbenchmarked (see GET /v1/ai/capabilities/documents.formula).

Classification: hybrid. Deterministic stages: file type detection from content, native PDF text extraction / OCR for documents, image normalisation (Sharp).

Formula helper works from text and settings, so no file is needed. The required inputs are instructions.

Not on the Free plan: Formula helper is available on the Plus plan and above. Free accounts can upgrade any time to use it. Each run uses credits from your monthly allowance.

Send a POST request to /v1/ai/documents/formula with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.