When to use it
Use this prompt when you know what a cell should calculate but not which functions to combine, when a formula someone else wrote returns errors, or when you need lookups, conditional sums or date logic. It is aimed at anyone who works in spreadsheets, from office staff to finance teams, and requires no programming knowledge.
How to customize it
- [APP AND VERSION] is important. Functions such as XLOOKUP, FILTER and LET exist only in newer versions of Excel, and some Google Sheets functions have no Excel equivalent.
- [LOCALE] decides whether arguments are separated by commas or semicolons, and whether function names are translated.
- [LAYOUT] lets the model write a formula with the right references instead of placeholders you must edit.
- [FORMATTED TABLE] allows structured references like
Orders[Quantity], which keep working as data grows. - [WHAT I WANT] and [EXAMPLE] together remove ambiguity: an expected result for one case is the best specification.
Why it works
Formulas fail most often because of the layout, not the logic: wrong ranges, mixed data types, or a function missing from your version. Giving the exact app, locale and column map means the model can write a formula you can paste directly.
The explanation turns the answer into something you can maintain, and the simpler alternative is often the better long-term choice, since a helper column is easier to audit than a clever one-line formula. The edge case list targets the problems that cause most real spreadsheet errors, such as dates stored as text. A manual check on one row is a quick way to catch a formula that runs but calculates the wrong thing.
Tips and variations
- Paste the formula into one cell first and check it against a value you calculated by hand.
- To understand an existing formula, paste it with “Explain this formula and suggest a clearer version.”
- Ask for conditional formatting rules or data validation in the same style.
- For repeated tasks across many files, ask whether a pivot table, Power Query or a script would be better.
- Remove names, salaries or customer details from examples before pasting them.