Request: Sum the amounts in column C when column A is "North" and column B is "Paid".
=SUMIFS(C:C,A:A,"North",B:B,"Paid")SUMIFS adds up column C only on rows that meet both criteria at the same time.
// code generator
Excel, Sheets, SQL and Python generated from one plain-English sentence. Paste it into your sheet and the cell fills itself.
FormulAI turns a sentence into an Excel or Google Sheets formula, an SQL query or a Python script. Here is the method that gives the best results.
Request: Sum the amounts in column C when column A is "North" and column B is "Paid".
=SUMIFS(C:C,A:A,"North",B:B,"Paid")SUMIFS adds up column C only on rows that meet both criteria at the same time.
Request: Show the price of the product whose SKU is in A2, looking it up in the Products sheet.
=XLOOKUP(A2,Products!A:A,Products!D:D,"Not found")XLOOKUP searches A2 in column A of Products and returns the value from column D; "Not found" replaces the #N/A error.
Request: List the 5 customers who spent the most in 2025, table orders (customer_id, amount, created_at).
SELECT customer_id, SUM(amount) AS total
FROM orders
WHERE created_at >= '2025-01-01' AND created_at < '2026-01-01'
GROUP BY customer_id
ORDER BY total DESC
LIMIT 5;The query filters the year with an index-friendly range, totals per customer, then keeps the top 5.
Request: Remove duplicate rows from sales.xlsx based on the email column and save it.
import pandas as pd
df = pd.read_excel("sales.xlsx")
df = df.drop_duplicates(subset=["email"])
df.to_excel("sales_deduplicated.xlsx", index=False)pandas reads the file, keeps the first row for each email and writes a new file without touching the original.