Claude Prompt Library

30 Claude Prompts That Write Excel Formulas

30 copy-paste prompts

Describe what you want a cell to do and Claude returns the exact, ready-to-paste formula plus a plain-English breakdown of how it works. Prompts for lookups, text, dates, conditional logic, dynamic arrays, and finance in Excel and Google Sheets.

In short: This page contains 30 copy-paste ready prompts, organized into 6 categories with a description and pro tip for each. The first 15 prompts are free instantly โ€” no signup needed. Hand-curated and tested by the AI Academy team.

By Louis Corneloup ยท Founder, Techpresso
Last updated ยทHand-curated & tested by the AI Academy team

Lookup & Reference

5 prompts

Exact-Match Lookup (XLOOKUP / VLOOKUP)

1/30

You are an Excel formula expert who writes clean, robust lookups. <context> I need one formula I can paste into a cell to pull a value from another table by matching a key. The formula must be self-contained and handle missing matches gracefully. </context> <inputs> - Lookup value cell: [E.G. A2] - Lookup column / range: [E.G. Products!A:A] - Return column / range: [E.G. Products!C:C] - What to show if no match: [E.G. "Not found" OR 0] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the exact formula. Prefer XLOOKUP when the tool supports it, otherwise INDEX/MATCH or VLOOKUP with the correct column index. Include the if-not-found handling inline (IFNA or the XLOOKUP argument). </task> <constraints> - Valid syntax for the named tool; no volatile helper columns. - Use absolute references where the range should not shift when dragged. </constraints> <format> Return the finished formula in a code block, a one-line Google Sheets variant if it differs, then a bullet breakdown of each argument and why. </format>

Produces the exact exact-match lookup formula with built-in error handling, ready to paste.

๐Ÿ’ก

Pro tip: Tell Claude whether your lookup column is to the LEFT of the return column โ€” that single fact decides VLOOKUP vs INDEX/MATCH.

Two-Way INDEX / MATCH Grid Lookup

2/30

You are a spreadsheet expert specializing in matrix lookups. <context> I have a grid where I need to find the value at the intersection of a row label and a column label (like a price by region and product). I need one formula for the intersection cell. </context> <inputs> - Row label to find + where it lives: [E.G. "West" in B2, row headers A2:A20] - Column label to find + where it lives: [E.G. "Q3" in C1, column headers B1:F1] - The value grid: [E.G. B2:F20] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write a two-way lookup using INDEX with two MATCH calls (or XLOOKUP nested inside XLOOKUP for Excel 365). Return the value where the row and column labels intersect. </task> <constraints> - Exact match on both axes; wrap in IFNA to show a clear message if either label is missing. - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then explain how the inner MATCH calls feed row and column numbers into INDEX. </format>

Generates a two-way INDEX/MATCH intersection formula for grid lookups, ready to paste.

๐Ÿ’ก

Pro tip: Ask for the XLOOKUP-nested version too โ€” it is easier to read later when you revisit the sheet.

Tiered / Approximate-Match Lookup

3/30

You are an Excel expert who builds banded lookups for commissions, tax brackets, and grades. <context> I need to look up a value against a range of thresholds (not an exact key) and return the matching tier, like a commission rate for a sales amount. </context> <inputs> - The value to band: [E.G. SALES IN B2] - Threshold table (must be sorted ascending): [E.G. lower bounds in E2:E6] - Rate / result column: [E.G. F2:F6] - What each tier means (one line): [E.G. 0=3%, 10k=5%, 50k=8%] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the approximate-match lookup: XLOOKUP with match mode -1 for the largest value less than or equal, or VLOOKUP with TRUE, or LOOKUP. Return the correct tier result. </task> <constraints> - State clearly that the threshold table must be sorted ascending. - Valid syntax for the named tool; handle a value below the lowest tier. </constraints> <format> Return the formula in a code block, then explain the match mode and why the table sort order matters. </format>

Writes a tiered approximate-match formula for brackets and commission bands, ready to paste.

๐Ÿ’ก

Pro tip: Paste your actual bracket table so Claude locks the ranges to your rows instead of using placeholders.

Multi-Criteria Lookup (Match on 2+ Columns)

4/30

You are an Excel formula expert who handles lookups that need more than one matching key. <context> A single key is not unique in my data โ€” I need to match on two or more columns at once (like customer AND month) and return one value. </context> <inputs> - Criteria 1 (value + column): [E.G. customer in A2, table col Data!A:A] - Criteria 2 (value + column): [E.G. month in B2, table col Data!B:B] - Column to return: [E.G. Data!D:D] - If no match: [E.G. "" OR "None"] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write a multi-criteria lookup: XLOOKUP with concatenated criteria, or INDEX/MATCH with a boolean array (col1=x)*(col2=y), or FILTER for Sheets/Excel 365. Return the single matching value. </task> <constraints> - No helper column; do it in one formula. - If it needs array entry in older Excel, say so explicitly. Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, note whether it needs Ctrl+Shift+Enter, then explain how the multiple conditions combine. </format>

Generates a one-cell multi-criteria lookup matching two or more columns, ready to paste.

๐Ÿ’ก

Pro tip: If matches can return more than one row, tell Claude โ€” it will switch to FILTER so you see all of them, not just the first.

Lookup With Fallbacks & Clean Errors

5/30

You are an Excel expert who makes lookups resilient so dashboards never show #N/A. <context> I want a lookup that tries a primary source, falls back to a second source if the first misses, and shows a clean message if both miss. </context> <inputs> - Lookup value: [E.G. SKU in A2] - Primary table (lookup + return): [E.G. Main!A:A returning Main!C:C] - Fallback table (lookup + return): [E.G. Backup!A:A returning Backup!C:C] - Final fallback text: [E.G. "Check manually"] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write a nested lookup: try the primary XLOOKUP/VLOOKUP, and if it errors, try the fallback, and if that errors, return the final text. Use XLOOKUP's if-not-found argument or IFNA nesting. </task> <constraints> - Catch only #N/A (not real errors that should surface) where possible. - Valid syntax for the named tool; readable nesting. </constraints> <format> Return the formula in a code block, then explain the fallback order and how the error handling is scoped. </format>

Writes a resilient lookup with a secondary source and a clean fallback message, ready to paste.

๐Ÿ’ก

Pro tip: Use IFNA rather than IFERROR so genuine mistakes (like a broken reference) still show up instead of being hidden.

XML tags are just the start. Learn the full Claude workflow.

A growing library of 300+ hands-on AI tutorials covering Claude, ChatGPT, and 50+ tools. New tutorials added every week.

Start 7-Day Free Trial

Text & Data Cleanup

5 prompts

Split Full Name Into First & Last

6/30

You are an Excel text-function expert. <context> I have full names in one column and need to split them into first and last name in separate cells with one formula each. </context> <inputs> - Cell with the full name: [E.G. A2] - Name format: [E.G. "First Last" OR "Last, First" OR "First Middle Last"] - Which parts I want: [E.G. FIRST IN B, LAST IN C] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one formula for each requested part. Use TEXTBEFORE/TEXTAFTER (Excel 365 / Sheets) or LEFT/RIGHT/MID with FIND/SEARCH for older Excel. Handle the stated format, including a middle name if present. </task> <constraints> - Trim stray spaces; do not break on single-word names โ€” return a blank or the whole value as specified. - Valid syntax for the named tool. </constraints> <format> Return each formula in a code block labeled by output cell, then explain how it locates the split point. </format>

Produces the exact formulas to split a full name into first and last parts, ready to paste.

๐Ÿ’ก

Pro tip: Give Claude two or three messy real examples (double spaces, suffixes like Jr.) so it hardens the formula against them.

Clean & Standardize Messy Text

7/30

You are a data-cleaning specialist who writes one-cell normalization formulas. <context> I have inconsistent text (extra spaces, wrong case, hidden characters, stray punctuation) and want one formula that outputs a clean, standardized version. </context> <inputs> - Cell to clean: [E.G. A2] - Case rule: [PROPER / UPPER / LOWER / LEAVE AS IS] - Characters to remove or replace: [E.G. REMOVE TRAILING COMMAS, TURN "&" INTO "and"] - Also strip non-printing chars?: [YES / NO] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one nested formula that applies TRIM, CLEAN, the case function, and any SUBSTITUTE replacements in the right order to return the cleaned string. </task> <constraints> - TRIM after SUBSTITUTE so removed characters do not leave double spaces. - Valid syntax for the named tool; single self-contained formula. </constraints> <format> Return the formula in a code block, then list the order of operations and what each wrapper fixes. </format>

Generates a single nested formula that trims, recases, and scrubs messy text, ready to paste.

๐Ÿ’ก

Pro tip: Ask Claude to add a SUBSTITUTE for CHAR(160) โ€” the non-breaking space that TRIM alone silently leaves behind.

Extract Domain / Username From Email

8/30

You are an Excel text-parsing expert. <context> I have email addresses in a column and need to pull out a specific part (the domain, the username, or the company name before the dot) with one formula. </context> <inputs> - Cell with the email: [E.G. A2] - What to extract: [DOMAIN / USERNAME / COMPANY NAME BEFORE THE TLD] - Output case: [LOWER / AS IS] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one formula that extracts the requested part. Use TEXTAFTER/TEXTBEFORE where available, or MID/FIND/LEN otherwise. If extracting the company name, strip the top-level domain too. </task> <constraints> - Return a blank (not an error) if the cell has no "@". - Valid syntax for the named tool; single formula. </constraints> <format> Return the formula in a code block, a Google Sheets variant if it differs (e.g. REGEXEXTRACT), then explain the parsing logic. </format>

Writes a one-cell formula to extract the domain, username, or company from an email, ready to paste.

๐Ÿ’ก

Pro tip: In Google Sheets ask for the REGEXEXTRACT version โ€” one clean pattern beats a stack of nested MID/FIND calls.

Join Columns With a Delimiter (Conditional)

9/30

You are an Excel expert who builds clean concatenations that skip blanks. <context> I want to combine several cells into one string with a separator, but skip any that are empty so I never get doubled-up delimiters. </context> <inputs> - Cells / range to join: [E.G. A2:D2] - Delimiter: [E.G. ", " OR " - " OR SPACE] - Skip empty cells?: [YES / NO] - Optional prefix or suffix: [E.G. WRAP EACH IN QUOTES / NONE] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one formula using TEXTJOIN (with the ignore-empty argument) or CONCAT/&, applying any prefix/suffix per value. Return the combined string. </task> <constraints> - No trailing or doubled delimiters. - Valid syntax for the named tool; single formula. </constraints> <format> Return the formula in a code block, then explain the ignore-empty flag and how to adapt the delimiter. </format>

Produces a TEXTJOIN-based formula that combines cells and skips blanks, ready to paste.

๐Ÿ’ก

Pro tip: Set TEXTJOIN's second argument to TRUE up front โ€” it is the difference between "A, , C" and a clean "A, C".

Extract a Pattern (Numbers, Codes, IDs)

10/30

You are an Excel and Google Sheets text-parsing expert. <context> I need to pull a specific pattern out of messy text in a cell โ€” like the digits from "Order #10482 shipped" or an order code embedded in a sentence. </context> <inputs> - Cell with the text: [E.G. A2] - What to extract (describe or give the pattern): [E.G. THE NUMBER, OR A CODE LIKE ABC-1234] - One or two example inputs and expected outputs: [SHOW ME] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the formula. In Google Sheets use REGEXEXTRACT with a correct pattern; in Excel 365 use TEXTSPLIT / TEXTBEFORE-AFTER or a numeric-extract technique; explain the regex or the parsing steps. </task> <constraints> - Return a blank if the pattern is not present. - Valid syntax for the named tool; test it against my examples mentally before answering. </constraints> <format> Return the formula in a code block, then explain the pattern piece by piece so I can tweak it. </format>

Generates a regex or text-split formula that extracts a specific pattern from text, ready to paste.

๐Ÿ’ก

Pro tip: Always hand over a couple of real example strings โ€” the pattern Claude writes is only as good as the cases it can see.

Dates & Time

5 prompts

Working Days Between Two Dates

11/30

You are an Excel date-function expert. <context> I need to count business days between two dates, excluding weekends and a list of holidays, with one formula. </context> <inputs> - Start date cell: [E.G. A2] - End date cell: [E.G. B2] - Weekend definition: [SAT/SUN / FRI/SAT / CUSTOM] - Holiday list range: [E.G. Holidays!A:A OR NONE] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the formula using NETWORKDAYS.INTL (or NETWORKDAYS if the weekend is standard and there is no custom pattern). Include the holiday range and the correct weekend code. </task> <constraints> - Handle the case where end date is before start date (return a negative or 0 as I choose). - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then explain the weekend code and how holidays are excluded. </format>

Writes a NETWORKDAYS.INTL formula counting business days minus holidays, ready to paste.

๐Ÿ’ก

Pro tip: Point the holidays argument at a named range so you can add dates later without editing every formula.

Age / Tenure in Years & Months

12/30

You are an Excel expert who writes precise duration formulas. <context> I need to calculate an age or tenure from a start date to today (or another date), shown as whole years and months. </context> <inputs> - Start date cell: [E.G. hire date in A2] - End date: [TODAY() / cell B2] - Output style: [WHOLE YEARS / "3y 4m" / DECIMAL YEARS] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the formula using DATEDIF for the requested unit(s). For the "Xy Xm" style, combine two DATEDIF calls with text. For decimal years, use YEARFRAC. </task> <constraints> - Do not double-count the month within the year. - Valid syntax for the named tool; note that DATEDIF is undocumented but works. </constraints> <format> Return the formula in a code block, then explain each DATEDIF unit argument ("Y", "YM", "M") used. </format>

Produces a DATEDIF-based age or tenure formula in the exact format you want, ready to paste.

๐Ÿ’ก

Pro tip: For a live age, use TODAY() as the end date so it recalculates every day the file opens.

Roll Dates Up to Month / Quarter / Fiscal Year

13/30

You are an Excel expert who builds reporting date buckets. <context> I have transaction dates and need a formula that outputs a grouping label โ€” month, calendar quarter, or fiscal year โ€” so I can pivot or group by it. </context> <inputs> - Date cell: [E.G. A2] - Grouping I want: [MONTH LABEL / QUARTER / FISCAL YEAR] - Label format: [E.G. "2026-03", "Q1 2026", "FY26"] - Fiscal year start month (if fiscal): [E.G. APRIL = 4] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one formula that returns the requested label. Use TEXT, YEAR, MONTH, and math (e.g. ROUNDUP(MONTH()/3)) for quarters, and offset logic for a non-January fiscal start. </task> <constraints> - Output must sort correctly as text (zero-pad months). - Valid syntax for the named tool; single formula. </constraints> <format> Return the formula in a code block, then explain the quarter or fiscal-offset math so I can shift the year start. </format>

Generates a formula that turns dates into month, quarter, or fiscal-year labels, ready to paste.

๐Ÿ’ก

Pro tip: Zero-pad the month (e.g. "2026-03") so text sorting keeps your buckets in true chronological order.

Due Date / Next Business Day

14/30

You are an Excel scheduling-formula expert. <context> I need to add a number of working days to a start date to get a due date, skipping weekends and holidays, with one formula. </context> <inputs> - Start date cell: [E.G. A2] - Working days to add: [E.G. 5, or a cell] - Weekend definition: [SAT/SUN / CUSTOM] - Holiday list range: [E.G. Holidays!A:A OR NONE] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the formula using WORKDAY.INTL (or WORKDAY for a standard weekend) to return the resulting business date. Show how to nudge to the NEXT business day (add 0 or 1 workday). </task> <constraints> - Result must land on a working day, never a weekend or holiday. - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then explain the weekend code and how to adapt it for a same-day-if-workday rule. </format>

Writes a WORKDAY.INTL formula that returns a due date skipping weekends and holidays, ready to paste.

๐Ÿ’ก

Pro tip: To snap any date forward to the next business day, ask Claude for the WORKDAY(date-1, 1) trick.

Convert Text to a Real Date

15/30

You are an Excel expert who fixes dates stuck as text. <context> I have dates imported as text (e.g. "03/07/2026" or "2026-03-07 14:30" or "7 Mar 26") that Excel will not treat as dates. I need a formula to convert them to real date/time values. </context> <inputs> - Cell with the text date: [E.G. A2] - The text format it is in: [E.G. DD/MM/YYYY / YYYY-MM-DD HH:MM / D MMM YY] - Want date only or date+time?: [DATE / DATE+TIME] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the conversion formula using DATEVALUE/TIMEVALUE, or DATE with parsed parts via LEFT/MID/RIGHT when the locale would misread it. Return a genuine serial date I can format or calculate on. </task> <constraints> - Do not rely on regional auto-parsing; explicitly control day vs month order. - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then explain how it avoids the day/month ambiguity. </format>

Produces a formula that converts text-formatted dates into real date values, ready to paste.

๐Ÿ’ก

Pro tip: State your source format explicitly (DD/MM vs MM/DD) โ€” that one detail is what stops silent date corruption.

Conditional Logic & Aggregation

5 prompts

Grade / Bucket With IFS (No Nested IFs)

16/30

You are an Excel logic-formula expert. <context> I need to assign a label based on which range a number falls in (like a grade, priority, or status), written cleanly instead of deeply nested IFs. </context> <inputs> - Cell to evaluate: [E.G. score in A2] - The bands and labels: [E.G. >=90 "A", >=80 "B", >=70 "C", ELSE "F"] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the formula using IFS with a final TRUE catch-all (or nested IF if the tool lacks IFS). Order the conditions correctly so higher bands are tested first. </task> <constraints> - Include a default/else result. - Valid syntax for the named tool; readable structure. </constraints> <format> Return the formula in a code block, then explain why the condition order matters and how the catch-all works. </format>

Generates a clean IFS formula that buckets a value into labeled bands, ready to paste.

๐Ÿ’ก

Pro tip: List your bands from highest threshold to lowest โ€” IFS returns the first match, so order is everything.

Sum With Multiple Conditions (SUMIFS)

17/30

You are an Excel expert who writes precise conditional sums. <context> I need to add up a column but only for rows that meet several conditions at once, including a date range. </context> <inputs> - Column to sum: [E.G. Amount in Data!D:D] - Condition 1 (column + test): [E.G. Region col A = cell G1] - Condition 2 (column + test): [E.G. Status col C = "Paid"] - Date filter (column + range): [E.G. Date col B between H1 and H2] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one SUMIFS formula covering all conditions. Express the date range as two criteria (">="&start and "<="&end). Reference cells for the criteria so they are editable. </task> <constraints> - Criteria ranges must be the same size as the sum range. - Valid syntax for the named tool; use cell references, not hard-coded values, where I gave a cell. </constraints> <format> Return the formula in a code block, then explain the criteria pairing and the ">="&cell date-range trick. </format>

Writes a multi-condition SUMIFS formula including a date range, ready to paste.

๐Ÿ’ก

Pro tip: For the date range, build the operator with concatenation (">="&H1) so the boundaries stay editable in cells.

Count Rows Matching Criteria (COUNTIFS)

18/30

You are an Excel expert who builds dashboard count metrics. <context> I need to count how many rows meet a set of conditions โ€” a KPI like "open tickets this week from tier-1 accounts". </context> <inputs> - Condition 1 (column + test): [E.G. Status col C = "Open"] - Condition 2 (column + test): [E.G. Tier col D = 1] - Optional date/number range (column + bounds): [E.G. Created col B >= this Monday] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one COUNTIFS formula for all conditions. Show how to express a "blank", "not blank", or "contains text" criterion if I need one. </task> <constraints> - All criteria ranges the same length; reference cells for editable thresholds. - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then list the criteria-operator syntax ("<>", "*text*", ">="&cell) I can reuse. </format>

Produces a COUNTIFS formula for a multi-condition dashboard count, ready to paste.

๐Ÿ’ก

Pro tip: Ask Claude to include the wildcard syntax ("*keyword*") so you can count partial-text matches without a helper column.

Conditional Average Ignoring Blanks/Zeros

19/30

You are an Excel expert who writes accurate conditional averages. <context> I need an average of a column filtered by conditions, and I want to exclude blanks and zeros so they do not drag the result down. </context> <inputs> - Column to average: [E.G. Score in Data!E:E] - Condition(s): [E.G. Team col A = cell G1] - Exclude zeros?: [YES / NO] - Exclude blanks?: [YES / NO] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one AVERAGEIFS formula that applies the conditions plus "<>0" and/or "<>" criteria on the value column as requested. Ensure it returns a clean result, not a divide-by-zero error, when nothing matches. </task> <constraints> - Wrap in IFERROR only for the no-match case, returning a chosen value. - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then explain how the "<>0" criterion is applied to the average range itself. </format>

Generates an AVERAGEIFS formula that excludes zeros and blanks, ready to paste.

๐Ÿ’ก

Pro tip: Excluding zeros vs. counting them as data changes the number a lot โ€” be explicit about which you mean.

Weighted / Multi-Condition SUMPRODUCT

20/30

You are an Excel expert in SUMPRODUCT for weighted and multi-condition math. <context> I need a calculation that SUMIFS cannot do easily โ€” like a weighted average, or a conditional sum where I multiply two columns together, filtered by criteria. </context> <inputs> - What I am computing: [E.G. WEIGHTED AVG SCORE, OR REVENUE = QTY * PRICE FOR A REGION] - Column A (e.g. quantity/values): [E.G. Data!C:C] - Column B (e.g. weights/price): [E.G. Data!D:D] - Condition(s): [E.G. Region col A = cell G1] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write one SUMPRODUCT formula that multiplies the columns, applies the conditions as boolean arrays (col=criteria), and โ€” for a weighted average โ€” divides by the summed weights. </task> <constraints> - All arrays the same length; no full-column ranges that would slow it down (use bounded ranges). - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then explain how the (condition) boolean arrays act as filters inside SUMPRODUCT. </format>

Writes a SUMPRODUCT formula for weighted or multi-condition calculations, ready to paste.

๐Ÿ’ก

Pro tip: Use bounded ranges (D2:D5000) not whole columns (D:D) โ€” SUMPRODUCT evaluates every cell and full columns crawl.

Dynamic Arrays & Spill

5 prompts

Filter a Table by Conditions (FILTER)

21/30

You are an Excel 365 and Google Sheets dynamic-array expert. <context> I want one formula that returns all rows from a table matching my conditions, spilling into a live range that updates automatically. </context> <inputs> - Data range to return: [E.G. Data!A2:E5000] - Condition 1: [E.G. Status col C = "Active"] - Condition 2 (optional): [E.G. Amount col D > 1000] - Sort the result by (optional): [E.G. Amount descending] - What to show if no matches: [E.G. "None"] - Tool: [EXCEL 365 / GOOGLE SHEETS] </inputs> <task> Write a FILTER formula combining the conditions with * (AND) or + (OR), the if-empty argument, and wrap in SORT if a sort is requested. Return only the columns I need if I specify. </task> <constraints> - Single spilling formula; no helper columns. - Valid syntax for the named tool; make clear the cell must have room to spill. </constraints> <format> Return the formula in a code block, then explain how * and + combine conditions and how the spill range behaves. </format>

Produces a spilling FILTER formula returning all matching rows, sorted, ready to paste.

๐Ÿ’ก

Pro tip: Combine conditions with * for AND and + for OR โ€” mixing them needs parentheses, so tell Claude the exact logic.

Unique List With Counts

22/30

You are a dynamic-array formula expert. <context> I need a de-duplicated list of values from a column, ideally with how many times each appears, as a live spilling result. </context> <inputs> - Source column: [E.G. Data!B2:B5000] - Want counts next to each unique value?: [YES / NO] - Sort order: [BY COUNT DESC / ALPHABETICAL / AS-IS] - Ignore blanks?: [YES / NO] - Tool: [EXCEL 365 / GOOGLE SHEETS] </inputs> <task> Write the formula. Use UNIQUE (wrapped in SORT if needed) for the list. If counts are wanted, produce a two-column spill using UNIQUE plus a COUNTIF mapped over the unique values (or a SORTBY on the pair). </task> <constraints> - Single spilling formula where possible. - Valid syntax for the named tool; handle blanks per my choice. </constraints> <format> Return the formula in a code block, then explain how the count column stays aligned with the unique list. </format>

Generates a UNIQUE-plus-COUNTIF formula for a live deduped list with frequencies, ready to paste.

๐Ÿ’ก

Pro tip: Wrap the whole thing in SORTBY on the count to get an instant frequency ranking, not just a plain list.

Top N Records (Ranked & Deduped)

23/30

You are a dynamic-array formula expert. <context> I want the top N items from a table by some value โ€” like the 10 biggest deals โ€” returned as a live, ranked, spilling range. </context> <inputs> - Data range: [E.G. Data!A2:D5000] - Rank by which column: [E.G. Amount col D, descending] - How many to return (N): [E.G. 10, or a cell] - Columns to show: [E.G. Name and Amount] - Optional pre-filter: [E.G. only Region = "EMEA" OR NONE] - Tool: [EXCEL 365 / GOOGLE SHEETS] </inputs> <task> Write the formula using SORT (or SORTBY) on the data, optionally wrapped in FILTER for the pre-filter, then TAKE the first N rows (Excel 365) or use an equivalent for Sheets. Return the requested columns. </task> <constraints> - Single spilling formula; ties should not drop rows unexpectedly. - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then explain the SORT-then-TAKE chain and how to make N a cell reference. </format>

Writes a SORT/FILTER/TAKE formula returning the ranked top N records, ready to paste.

๐Ÿ’ก

Pro tip: Make N a cell reference so you can change "top 10" to "top 25" without touching the formula.

Split One Column Into Many (TEXTSPLIT)

24/30

You are an Excel 365 and Google Sheets dynamic-array expert. <context> I have a column where each cell holds several values joined by a delimiter (like "red;green;blue") and I want them split across columns as a spilling result. </context> <inputs> - Cell / column to split: [E.G. A2 or A2:A100] - Delimiter(s): [E.G. ";" OR ", " OR MULTIPLE] - Split across columns, down rows, or both?: [COLUMNS / ROWS / BOTH] - Trim spaces around each piece?: [YES / NO] - Tool: [EXCEL 365 / GOOGLE SHEETS] </inputs> <task> Write the formula using TEXTSPLIT (Excel 365) with the column and/or row delimiter arguments, or SPLIT (Google Sheets). Handle multiple delimiters and empty segments as I specify. </task> <constraints> - Single spilling formula; make room to spill. - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, note the Sheets vs Excel function difference, then explain the delimiter arguments. </format>

Produces a TEXTSPLIT or SPLIT formula that spills one cell into many columns, ready to paste.

๐Ÿ’ก

Pro tip: TEXTSPLIT takes both a column and a row delimiter โ€” pass both to explode a mini table out of a single cell.

Running Total / Cumulative Sum

25/30

You are an Excel expert who builds cumulative and running-total formulas. <context> I need a running total down a column (each row = sum of everything up to it), either as one spilling formula or a fill-down formula. </context> <inputs> - Value column: [E.G. B2:B500] - Running total starts at row: [E.G. row 2] - Reset the total by a group? (optional): [E.G. reset each new month in col A / NO] - Prefer one spilling formula or a drag-down one?: [SPILL / DRAG-DOWN] - Tool: [EXCEL 365 / EXCEL 2019 / GOOGLE SHEETS] </inputs> <task> Write the formula. For a spill in Excel 365 use SCAN or a SUMIF over an expanding range; for drag-down use SUM($B$2:B2) anchoring. If a group reset is requested, use SUMIFS keyed to the group. </task> <constraints> - The anchor must be absolute so the range expands correctly when filled. - Valid syntax for the named tool. </constraints> <format> Return the formula in a code block, then explain the expanding-range anchor or the SCAN accumulator. </format>

Generates a running-total formula (spilling or drag-down, with optional group reset), ready to paste.

๐Ÿ’ก

Pro tip: The classic trick is SUM($B$2:B2): lock the top, leave the bottom relative, and it grows as you fill down.

Most people use 10% of Claude. Tutorials unlock the rest.

AI Academy: 300+ hands-on tutorials on Claude, ChatGPT, Midjourney, and 50+ AI tools. New tutorials added every week.

Start Your Free Trial

Financial & Statistical

5 prompts

Loan Payment & Amortization (PMT)

26/30

You are a financial-modeling expert who writes clean loan formulas. <context> I need to calculate the periodic payment on a loan, and optionally the interest and principal portions of a given payment, with formulas. </context> <inputs> - Annual interest rate: [E.G. cell B1 = 6%] - Loan term: [E.G. 5 years] - Payment frequency: [MONTHLY / QUARTERLY / ANNUAL] - Loan amount (principal): [E.G. cell B3 = 30000] - Also split interest vs principal for a period?: [YES / NO] - Tool: [EXCEL / GOOGLE SHEETS] </inputs> <task> Write the PMT formula with the rate and nper converted to the payment frequency (rate/12, term*12 for monthly). If requested, add IPMT and PPMT for a specific period number. Show payments as a positive number if I want. </task> <constraints> - Convert annual rate and term to the period consistently. - Valid syntax for the named tool; note the sign convention. </constraints> <format> Return each formula in a code block, then explain the rate/nper conversion and the sign convention. </format>

Writes PMT (plus IPMT/PPMT) loan formulas with correct period conversion, ready to paste.

๐Ÿ’ก

Pro tip: Divide the annual rate by 12 AND multiply the term by 12 โ€” forgetting one is the most common PMT mistake.

NPV & IRR for a Cash-Flow Series

27/30

You are a corporate-finance modeling expert. <context> I have a series of cash flows and need to evaluate an investment with net present value and internal rate of return using formulas. </context> <inputs> - Initial investment (period 0): [E.G. cell B2 = -50000] - Future cash flows range: [E.G. B3:B10] - Discount rate: [E.G. cell B1 = 10%] - Are cash flows on regular periods or specific dates?: [REGULAR / DATED] - Tool: [EXCEL / GOOGLE SHEETS] </inputs> <task> Write NPV correctly (NPV discounts from period 1, so add the period-0 outflow outside the function) and IRR. If cash flows are dated, use XNPV and XIRR with the date range instead. </task> <constraints> - Do not include the period-0 flow inside NPV. - Valid syntax for the named tool. </constraints> <format> Return each formula in a code block, then explain the period-0 handling and when to use XNPV/XIRR. </format>

Generates correct NPV and IRR (or XNPV/XIRR) formulas for a cash-flow series, ready to paste.

๐Ÿ’ก

Pro tip: The #1 NPV error is including the initial outlay inside NPV() โ€” keep it outside and add it separately.

Future Value of Recurring Savings (FV)

28/30

You are a personal-finance and investing formula expert. <context> I want to project what recurring contributions will grow to over time at a given return, with one formula. </context> <inputs> - Expected annual return: [E.G. cell B1 = 7%] - Contribution amount and frequency: [E.G. 500 monthly] - Number of years: [E.G. 20] - Starting balance (optional): [E.G. 5000 OR 0] - Contribute at start or end of period?: [BEGINNING / END] - Tool: [EXCEL / GOOGLE SHEETS] </inputs> <task> Write the FV formula with rate and nper converted to the contribution frequency, the payment as a negative outflow, the optional present value, and the correct type argument (0 or 1) for timing. </task> <constraints> - Convert rate and periods to match the contribution frequency. - Valid syntax for the named tool; explain the sign convention. </constraints> <format> Return the formula in a code block, then explain the type argument and how beginning-of-period timing changes the result. </format>

Produces an FV formula projecting recurring contributions to a future value, ready to paste.

๐Ÿ’ก

Pro tip: Set the type argument to 1 for beginning-of-month deposits โ€” over decades it noticeably raises the ending balance.

CAGR / Growth Rate Between Two Points

29/30

You are a financial-analysis formula expert. <context> I need the compound annual growth rate between a starting value and an ending value over a number of periods, plus optionally a simple period-over-period growth formula. </context> <inputs> - Starting value cell: [E.G. B2] - Ending value cell: [E.G. B10] - Number of years/periods: [E.G. 8, or count via dates] - Also want simple % change between two cells?: [YES / NO] - Output as percentage?: [YES] - Tool: [EXCEL / GOOGLE SHEETS] </inputs> <task> Write the CAGR formula ((end/start)^(1/periods)-1). If dates define the span, derive the year count with YEARFRAC. Add the simple growth formula (new-old)/old if requested. </task> <constraints> - Guard against a zero or negative starting value (wrap in IFERROR or note the limitation). - Valid syntax for the named tool; format as a percent. </constraints> <format> Return each formula in a code block, then explain the exponent (1/periods) and why CAGR differs from a simple average. </format>

Writes a CAGR formula (and simple growth rate) between two values, ready to paste.

๐Ÿ’ก

Pro tip: If your span is in dates not whole years, ask for the YEARFRAC version so partial years are handled correctly.

Depreciation Schedule (SLN / DB)

30/30

You are an accounting-formula expert. <context> I need formulas to calculate asset depreciation โ€” straight-line for a flat annual amount, or declining-balance for an accelerated schedule. </context> <inputs> - Asset cost cell: [E.G. B2] - Salvage value cell: [E.G. B3] - Useful life (years): [E.G. B4] - Method: [STRAIGHT-LINE / DECLINING BALANCE / DOUBLE-DECLINING] - Period to calculate (for DB): [E.G. year in C2] - Tool: [EXCEL / GOOGLE SHEETS] </inputs> <task> Write the formula for the chosen method: SLN for straight-line, DB or DDB for declining balance for the given period. Make it fill-down friendly so I can build a full schedule keyed to the period column. </task> <constraints> - Reference cost/salvage/life as absolute cells; period as relative. - Valid syntax for the named tool. </constraints> <format> Return the formula(s) in a code block, then explain how to fill it down across periods to form the full schedule. </format>

Generates SLN, DB, or DDB depreciation formulas that fill down into a schedule, ready to paste.

๐Ÿ’ก

Pro tip: Anchor cost, salvage, and life with $ signs and leave the period relative โ€” then one formula fills the whole schedule.

Frequently Asked Questions

Yes. Every prompt asks you to name your tool, and Claude returns the correct syntax for Excel 365, older Excel, or Google Sheets. Where functions differ (like TEXTSPLIT vs SPLIT, or REGEXEXTRACT which only Sheets has), Claude gives you the matching variant and flags the difference.
Both. Each prompt tells Claude to return the ready-to-paste formula in a code block, then break down what every argument does in plain English. That means you can paste it now and still understand it well enough to tweak the ranges later.
They are placeholders for your own details โ€” cell references, ranges, thresholds, and your tool. Replace them before sending, and the more specific you are (real ranges, a couple of sample rows), the more precise and drop-in the formula Claude writes will be.
Yes. Paste your broken formula, the error it returns (#N/A, #VALUE!, #REF!, spill error), and what you expected it to do. Claude will diagnose the cause, rewrite the formula correctly, and explain what went wrong so you avoid it next time.
The finance prompts follow standard conventions (PMT sign handling, keeping the period-0 outflow outside NPV, matching rate and period units), and Claude explains each assumption. Always sanity-check the output against a known figure or a small manual example before relying on it for reporting.

Prompts are the starting line. Tutorials are the finish.

A growing library of 300+ hands-on tutorials on ChatGPT, Claude, Midjourney, and 50+ AI tools. New tutorials added every week.

7-day free trial. Cancel anytime.