AI Excel & Google Sheets formula generator
GPTExcel's formula generator turns a plain-English description into a working formula for Microsoft Excel, Google Sheets, LibreOffice Calc, or Airtable. It can also explain an existing formula step by step or rewrite it to be cleaner and faster.
How it works
From plain English to a working formula
- 1
Pick your platform
Choose Microsoft Excel, Google Sheets, LibreOffice Calc, or Airtable. For Excel you can also set the version, from Excel 2010 to Excel 365.
- 2
Set your formula language and separator
If your spreadsheet uses localized function names or semicolons between arguments, set the formula language and argument separator once in the formula settings.
- 3
Describe what the formula should do
Write the task in plain English and mention your columns or sheet names, e.g. “Sum column B only where column A equals Paid”.
- 4
Generate, copy, and paste
GPTExcel returns the formula in a copyable code block with short notes on how it works. Switch to Explain or Optimize to break down or improve a formula you already have.
Example
One prompt, one result
A typical request and the kind of answer the Formulas tool returns. AI output varies, so check it against your own data before you rely on it.
Look up the price in Sheet2 by SKU and return 0 if not found
Result
Here's an Excel formula that finds the SKU from A2 in Sheet2 and returns its price, or 0 when the SKU isn't there.
=XLOOKUP(A2, Sheet2!A:A, Sheet2!B:B, 0)XLOOKUPsearches Sheet2 column A for the SKU and returns the matching value from column B- The fourth argument (
0) is returned when no match is found - Adjust the ranges if your SKUs or prices live in other columns
Supported platforms
Written for the tool you actually use
Every mode works with every option below: Generate, Explain, Optimize.
Microsoft Excel
Excel 365, Excel 2021, Excel 2019, Excel 2016, Excel 2013, Excel 2010
Google Sheets
LibreOffice Calc
Airtable
Frequently asked questions
- Which spreadsheet apps does the formula generator support?
- Microsoft Excel (Excel 365, 2021, 2019, 2016, 2013, and 2010), Google Sheets, LibreOffice Calc, and Airtable. Pick the platform before you generate and the formula is written for that app.
- Does it work with non-English Excel or semicolon separators?
- Yes. In the formula settings you can choose the formula language, so function names match your localized version, and switch the argument separator between comma and semicolon.
- Can it explain or fix a formula I already have?
- Yes. Paste a formula into Explain mode for a plain-English, step-by-step breakdown, or into Optimize mode to get a cleaner, faster version with a note on what changed.
- Is the formula generator free?
- Yes, you can start free. The free plan includes 4 tool runs every 12 hours, shared across the Formula, Script, SQL, Regex, and Template tools, and paid plans raise that limit. You need a free GPTExcel account to use it.
Try the Formulas tool free
No credit card required. The free plan includes 4 tool runs every 12 hours.
Sign in and start generating