Excel Formula Generator
Fill in the details below
Your output will appear here.
This Excel formula generator turns a plain English description into an Excel formula, with a short explanation of how each part works. Type what you want to calculate in Formula topic, such as a lookup, a conditional sum or a status flag, then copy the result into your sheet. It is free, needs no sign-up and the answer is generated with AI.
Fill in the details below
Your output will appear here.
Describe the calculation in your own words. Name the columns, rows and conditions, and the generator writes the formula.
Each answer pairs the formula with an explanation, so you see what every part does before you use it.
Ask for lookups, conditional sums and counts, IF and IFS logic, date checks or error handling.
Copy the answer with one click and paste the formula into the Excel cell you need.
Three steps from a blank form to a result you can use.
Type what you need in Formula topic, with the cell ranges, the conditions and what to show when data is missing.
Click Generate. The formula and its explanation stream into the output panel. Click Stop if you want to rephrase.
Paste the formula into a cell, check it against rows you can work out by hand, then fill it down.
An Excel formula starts with an equals sign and combines functions, cell references and operators. The generator writes that formula from your description and explains it, so you learn the pattern instead of pasting it blind.
The formula is generated with AI. It can look right and still point at the wrong range, so read the explanation and test it every time.
Excel needs exact cells, sheets and conditions. A request that leaves these out forces the AI to guess. We include the details in this table in every request.
| Include | Why it matters | Example wording |
|---|---|---|
| Cell or range | The formula must point at real data | Amounts are in C2:C40 |
| Sheet name | Lookups often read from another tab | Rates are on a sheet called Rates |
| Conditions | Defines which rows count | Only rows where column F says Done |
| Fill direction | Decides which references need a $ sign | I will copy this down to row 40 |
| Missing data rule | Avoids #N/A in reports | Show No rate if the code is not found |
| Excel version | Rules out functions you do not have | I use Excel 2019 |
The version line matters more than most people expect. Microsoft's XLOOKUP page states that XLOOKUP is not available in Excel 2016 and Excel 2019, and the IFS page lists Excel 2019 and later. If you use an older version, ask for a formula that avoids those functions.
Most broken formulas in Excel are not wrong on the first row. They break when you copy them. That comes down to the reference type.
Microsoft explains that a normal reference such as A1 is relative: it shifts when you copy the formula. A $ sign locks the part it sits in front of. $A$1 is absolute and never moves. A$1 and $A1 are mixed, locking only the row or only the column. To switch types, select the reference in the formula bar and press F4.
| Original reference | After copying 2 cells down and 2 right | Type |
|---|---|---|
$A$1 | $A$1 | Absolute |
A$1 | C$1 | Mixed |
$A1 | $A3 | Mixed |
A1 | C3 | Relative |
The table follows Microsoft's own example. When you ask the generator for a formula, say that you will copy it down or across, and check that fixed inputs such as a tax rate cell carry $ signs.
The descriptions and syntax follow Microsoft Support. Arguments in square brackets are optional.
| Function | What it does | Syntax |
|---|---|---|
| XLOOKUP | Finds things in a table or range by row | XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]) |
| SUMIFS | Adds all of its arguments that meet multiple criteria | SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) |
| IFS | Checks one or more conditions and returns the value for the first TRUE condition | IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...) |
Example: an illustration with made-up data, not captured tool output. A sheet lists tasks in column A, Budget in column B and Actual in column C, in rows 2 to 40. Cell G1 holds a contingency rate of 10%. A second sheet called Rates lists role codes in A2:A20 and hourly rates in B2:B20.
Request 1: "In D2, show Over budget if Actual is more than Budget, Near limit if Actual is more than 90% of Budget, otherwise On track."
=IFS(C2>B2, "Over budget", C2>B2*0.9, "Near limit", TRUE, "On track")
Request 2: "In E2, add the contingency rate in G1 to the budget. I will copy this down."
=B2*(1+$G$1)
Request 3: "In F2, look up the role code in H2 on the Rates sheet and return the hourly rate. Show No rate if it is missing."
=XLOOKUP(H2, Rates!$A$2:$A$20, Rates!$B$2:$B$20, "No rate")
Now check them. In Request 1, the order matters: IFS stops at the first TRUE test, so Over budget must come before Near limit. The final TRUE is the fallback. In Request 2, $G$1 stays fixed as the formula fills down, while B2 becomes B3, B4 and so on. In Request 3, the lookup ranges are locked so they do not slide when copied, and "No rate" replaces the default #N/A.
| Error | Common cause | What to do |
|---|---|---|
| #NAME? | A misspelled function, text without double quotes, a range missing its colon, or a function that needs an add-in | Fix the spelling, quotes or range. Check your version has the function |
| #N/A | XLOOKUP found no match, or no IFS condition was TRUE | Check the lookup value, or add if_not_found or a final TRUE test |
| #SPILL! | Something blocks the cells a result needs to spill into | Clear or move the blocking data |
| #VALUE! | For IFS, a test that returns something other than TRUE or FALSE | Rewrite the test as a comparison |
Quick answers about the Excel Formula Generator.
An Excel formula generator writes a formula from a plain English description, so you do not need to remember function names or argument order. This one uses AI. You type the calculation in Formula topic and get the formula plus a short explanation of how it works, which you then copy into Excel and test.
Yes. The generator is free and needs no account. Describe your calculation, click Generate and copy the result. You can use it as often as you like for lookups, conditional sums, counts, IF and IFS logic, date checks and other everyday spreadsheet tasks in Excel.
Not always. Microsoft states that XLOOKUP is not available in Excel 2016 or Excel 2019, and IFS needs Excel 2019 or later. Put your version in the Formula topic so the answer uses functions you have. If Excel shows #NAME?, the function may be missing from your version.
Usually a reference that should stay fixed is relative. A1 moves when you copy it, while $A$1 stays put. Tell the generator you will copy the formula down, and check that cells like a rate or a lookup table carry $ signs. In Excel, select a reference and press F4 to switch types.
The tool is built to write new formulas with an explanation, but you can paste an existing formula into Formula topic and ask what it does or why it returns an error. Check the answer against Microsoft Support for any function you do not recognise, since the response is generated with AI and can be wrong.
This page is written for Excel. Many basic formulas work in both, but some functions and behaviours differ between the two apps. If you work in Google Sheets, use our Google Sheets formula generator instead, which is set up for that app and its function names.
Our PHP code generator drafts PHP code from a short brief.
Our test case generator drafts test cases for a single function.
This Numbered List Generator adds numbers to a list you paste in.
Our ChatGPT prompt generator writes a role prompt that tells ChatGPT who to be.