How it works
- Describe what the cell should calculate in plain English, using your column letters and sheet names if you know them.
- Pick Excel 365, older Excel or Google Sheets, optionally describe your columns, and click Write my formula.
- Copy the formula into the cell it names, fill down if told to, and check the result against a few rows you can verify by hand.
Examples
Sample results for the inputs shown, so you can see the format and quality before you try it.
What should the formula do? Look up the price for the product code in A2 from the Prices sheet (codes in column A, prices in column C). Show Not found if it's missing.
Spreadsheet app: Excel (Microsoft 365 or 2021+)
What should the formula do? Total the Amount for rows where Region is West and the Date is in the current month
Spreadsheet app: Google Sheets
Your sheet layout: Row 1 headers. A: Date, B: Region, C: Rep, D: Amount
What should the formula do? Count how many unique customers are in B2:B500, ignoring blank cells
Spreadsheet app: Excel 2019 or older
Tips for better results
- Use your real column letters. "Sum column D where column B is West" gets a formula you can paste; "sum the sales" gets one you have to edit.
- Pick the right version. XLOOKUP, FILTER and UNIQUE don't exist in Excel 2019 and older, so a formula written for 365 shows #NAME? there.
- If a formula returns 0 or Not found on data you can see, the usual cause is numbers or dates stored as text. Check the cell format first.
- Test on five rows you can check in your head before you trust a total that covers five thousand.
FAQ
Is this Excel formula generator free?
Yes. Enter your email once to use it (you'll also get Something Big, our free weekly AI newsletter, and you can unsubscribe anytime). There's no account and no credit card.
Does it work for Google Sheets?
Yes. Pick Google Sheets and it writes a formula that works there, using Sheets functions such as ARRAYFORMULA, QUERY and REGEXMATCH when they fit.
What if my Excel doesn't have XLOOKUP?
Choose Excel 2019 or older and it uses INDEX/MATCH, SUMIFS, SUMPRODUCT and other functions every version has. When you pick Excel 365, it also adds an older-version fallback whenever it uses a newer function.
Why does my formula use commas when my Excel uses semicolons?
Many European locales separate arguments with semicolons. If Excel rejects the formula, replace each comma between arguments with a semicolon.
More free AI tools
Related prompts
Prefer to use ChatGPT or Claude directly? These free prompts do similar jobs.