Skip to content

Excel and Google Sheets Formulas with AI

Oct 6, 2026 1 min read

Spreadsheet formulas are a perfect task for AI: the problem is well defined and you can check the answer immediately.

Describe your sheet

Tell the AI which columns hold which data and what you want calculated:

In Google Sheets, column A has dates, B has product names, C has quantity
and D has unit price. Write a formula for a summary table that shows
total revenue per product for March 2026.

Things AI can help with

  • Lookups: XLOOKUP, VLOOKUP, INDEX/MATCH
  • Conditional sums and counts: SUMIFS, COUNTIFS
  • Text cleanup: splitting names, trimming spaces, extracting emails
  • Dates: working days, month-end, age calculations
  • Dynamic arrays: FILTER, SORT, UNIQUE, QUERY
  • Conditional formatting rules
  • Pivot table setups and charts

Fix broken formulas

Paste the formula and the error (#N/A, #VALUE!, #REF!) and ask why it fails. AI is good at spotting mismatched ranges and data-type problems.

Go further with scripts

For repetitive jobs, ask for an Apps Script (Google Sheets) or VBA macro, and test it on a copy of your file first.

Find more in Business & Productivity prompts.

Put it into practice

Browse hundreds of free, ready-to-copy prompts for ChatGPT, Claude, Midjourney and more.

Browse prompts
Keep reading

More articles

All articles