How to Build an Excel or Google Sheets Formula With ChatGPT
Describe what you want a cell to do in plain English and get a working formula you can paste straight in.
Nested IFs, VLOOKUP, INDEX MATCH, the syntax never sticks. Instead of fighting it, describe the result you want and let ChatGPT write the formula. It works for both Excel and Google Sheets, but you have to tell it which one because the function names differ.
- Which app you use (Excel or Google Sheets)
- Your column layout and what is in each column
- An example of the input and the output you expect
Step 1: Describe your sheet layout
The model cannot see your sheet, so tell it where things are. Name the columns and give a sample row. Vague requests get formulas that reference the wrong cells.
Google Sheets. Column A has sale dates, column B has amounts.
In cell D2 I want the total of all amounts where the date in A is in the current month.
Give me one formula and explain each part briefly.Step 2: Paste the formula and test one cell
Copy the formula into the target cell and check the result against a value you can compute by hand. Do not roll it out across a thousand rows until one cell is proven correct.
=SUMIFS(B:B, A:A, ">="&EOMONTH(TODAY(),-1)+1, A:A, "<="&EOMONTH(TODAY(),0))Step 3: Ask it to explain so you can maintain it
A formula you do not understand is a future bug. Ask the model to break down each argument. For the example above, EOMONTH(TODAY(),-1)+1 is the first day of this month and EOMONTH(TODAY(),0) is the last, so SUMIFS adds only this month's amounts.
Step 4: Handle the edge cases
Tell it what should happen with blanks, errors, or text in a number column. Ask wrap this so blank cells count as zero and errors show a dash. This is where hand-written formulas usually break and where the model saves you the most time.
Result
You describe the calculation in one sentence, get a working SUMIFS formula, understand each piece, and harden it against blanks. No more trial-and-error with parentheses.
Watch related tutorials
19:27
1:42:18
28:14
41:09
9:47
8:23