Everyday life / Tech & scams

Write an Excel or Google Sheets formula

You know what to calculate but not how to write the formula.

Fill in your details

Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).

Prompt

Write a spreadsheet formula for me.

Sheet: Column A date, B customer, C amount, D "Paid / Unpaid"
Want: Total unpaid amount per customer

Rules:
- Give the formula; if Excel and Google Sheets differ, give both.
- Explain each part step by step.
- Say which cell to put it in and how to fill it down.
- Also give a no-formula way (e.g. a pivot table).

Paste it into ChatGPT, Gemini, Claude or Meta AI.

Test result

Run on 2026-12-01 with Claude Sonnet 5.5, using the example details above. AI never answers word for word the same twice, but the shape stays close.

What we noticed

The SUMIFS formula is identical in Excel and Sheets, so one was given plus UNIQUE and QUERY extras. The prompt does not warn that the text must match exactly, so the answer added that.

See what the AI actually wrote

Goal: total unpaid amount per customer.

1. Set up a customer list
Assume data is in rows 2 to 100. In F1 put "Customer" and in G1 put "Unpaid total". Column F holds each customer name once (type them, or use UNIQUE below).

2. The formula (put it in G2; F2 is the first customer)
Works in both Excel and Google Sheets:
=SUMIFS($C$2:$C$100, $B$2:$B$100, F2, $D$2:$D$100, "Unpaid")

What each part does

  1. SUMIFS adds numbers that meet several conditions.
  2. $C$2:$C$100 is what gets added: the amount column.
  3. $B$2:$B$100, F2 is condition one: customer must equal the name in F2.
  4. $D$2:$D$100, "Unpaid" is condition two: column D must say Unpaid. The text must match your sheet exactly, including spaces.
  5. The $ signs lock the ranges so they do not shift when you fill down.

3. Where to put it and how to fill down

  • Put it in G2 and press Enter.
  • Click G2, drag the small square at its bottom-right corner down to the last customer. Double-clicking that square fills to the bottom automatically.

4. Listing the customers automatically (optional)

  • Excel 365 and Google Sheets: in F2 type =UNIQUE(B2:B100).
  • Older Excel without UNIQUE: copy column B to F, then Data, Remove Duplicates.
  • Google Sheets only, one formula for everything: =QUERY(A1:D100,"select B, sum(C) where D='Unpaid' group by B label sum(C) 'Unpaid total'").

5. No-formula way: PivotTable (Excel) / Pivot table (Google Sheets)

  1. Click any cell in your data, then Insert, PivotTable.
  2. Drag Customer to Rows.
  3. Drag Amount to Values and check it says Sum.
  4. Drag "Paid / Unpaid" to Filters and tick only Unpaid.
  5. You now see unpaid totals per customer. After adding new rows, right-click the table and choose Refresh.

AI tools that suit this

  • ChatGPT Suggested tool Free plan

    The most widely used AI chat, for writing, questions and images

  • Gemini Suggested tool Free plan

    Google's AI; generates and edits images, works with Gmail and Docs

  • Claude Suggested tool Free plan

    Strong at long documents, editing and code

Recommendations only, not sponsored. Check each site for what the free plan includes.

Goes well with

This site is made by FullMark Tech

Want to learn to use AI yourself? FullMark Tech runs weekend AI tools workshops and builds websites, WhatsApp auto-booking and Google Maps profiles for shops.

Ask on WhatsApp See FullMark Tech services