Free Excel Formula Generator
Describe what you need in plain English — get the exact Excel (or Google Sheets) formula, explained.
Your formula will appear here.
Describe what you need, then click Generate.
What is an Excel formula generator?
An Excel formula generator is a free tool that turns a plain-English description into the exact spreadsheet formula you need — no memorising syntax, no digging through help docs. Describe what you want (sum, count, average, lookup, IF logic, text, or dates), and this free Excel formula generator returns a ready-to-paste formula plus a short explanation of what it does.
It works as a formula generator for both Excel and Google Sheets, covering everyday jobs like SUMIF, COUNTIF, XLOOKUP, VLOOKUP, IF statements, and DATEDIF. Paste the formula, swap in your own cell ranges, and you’re done — the explanation means you actually understand it, not just copy it.
When you need more than one formula — full models, forecasts, and the analysis behind them — the Financial Analyst Skill (Nathan) on KissMySkills turns Claude, ChatGPT, or any AI chat into a senior analyst who builds the whole spreadsheet for you.
How to describe the formula you want
The generator is only as precise as your description: name the columns and the condition, not the outcome.
“Add up my sales” is not enough. “Add up column D where column B says Paid and the date in column C is on or after 1 January 2026” produces =SUMIFS(D:D, B:B, "Paid", C:C, ">="&DATE(2026,1,1)) — with the date built by DATE() rather than typed as text, which is what stops it breaking on a machine with different regional settings. Likewise, “look up the price” becomes useful as “match the SKU in A2 against column A of the Products sheet, return column C, show ‘Not found’ if there’s no match”: =XLOOKUP(A2, Products!$A:$A, Products!$C:$C, "Not found").
Say too whether blanks should count as zero or be ignored: COUNTA(E2:E500) treats a cell holding a formula that returns an empty string as filled, while COUNTBLANK(E2:E500) treats that same cell as blank.
Five mistakes that break a pasted formula
1. Swapping SUMIF and SUMIFS argument order. SUMIF puts the range you are adding up last — SUMIF(range, criteria, [sum_range]) — while SUMIFS puts it first: SUMIFS(sum_range, criteria_range, criteria, …). Microsoft’s own documentation flags this reversal as a common source of problems: edit one into the other without reordering and the formula quietly returns zero.
2. Counting VLOOKUP columns from the wrong place. The column index counts from the leftmost column of the range you gave it, not from column A of the sheet — if the range starts at C, index 2 is column D. VLOOKUP also cannot look left of its lookup column: a structural limit, and the reason XLOOKUP or INDEX/MATCH is the right answer when the key sits right of the value.
3. Numbers that are actually text. Data imported from another system often arrives as text, and =SUMIF(B:B, ">100", C:C) then silently matches nothing. Excel flags these cells with a small green triangle; converting the column to numbers fixes it, and no rewrite of the formula will.
4. The wrong argument separator. Excel takes its list separator from your regional settings, so in locales where the comma is the decimal separator the argument separator is a semicolon instead. A formula copied from an English-language site is then rejected the instant you press Enter. Swap the commas between arguments for semicolons before assuming the logic is wrong.
5. Using a function your version doesn’t have. XLOOKUP, FILTER, UNIQUE, SORT and LET are absent from Excel 2016 and 2019; LAMBDA arrived later still and isn’t in Excel 2021 either. Excel prefixes any function it doesn’t recognise with _xlfn. and returns #NAME?. On an older perpetual licence, ask for the VLOOKUP or INDEX/MATCH equivalent rather than debugging the newer one.
What the error in the cell is telling you
Excel’s error values are diagnostic, and each points at a different problem. #N/A means the lookup ran correctly and found nothing — usually trailing spaces, a mismatched data type, or a genuinely missing key. #VALUE! means an argument is the wrong type, typically text where a number belongs. #REF! means a cell the formula depended on has been deleted, so the formula itself needs repairing. #NAME? is a misspelling or a function your version lacks. #DIV/0! is division by an empty or zero cell. #SPILL! means a formula returning multiple cells can’t write them, usually because something is already in the way.
The reflex to wrap everything in IFERROR is worth resisting: it catches all seven classic error values, so a typo in a function name hides behind the same friendly message as a legitimate no-match. Use IFNA when you only want to catch “not found”, or XLOOKUP’s if_not_found argument. Hide the error you expect; leave the ones you don’t.
When a formula is the wrong answer
A generator writes from a description, so it cannot see your data. It cannot tell you that your dates are stored inconsistently, that a column holds two spellings of the same category, or that a merged cell is about to break the range. Those problems look like formula problems and aren’t.
It is also the wrong tool when the real fix is structural. The same lookup repeated across twelve sheets usually means you need one consolidated table. Data laid out with a month in every column will never be as clean as unpivoting it in Power Query first. And working out what an inherited workbook does is auditing, not authoring — start with Trace Precedents and Evaluate Formula. Anything needing judgement about the numbers themselves is analysis, which is where the Financial Analyst Skill picks up.