Prompier
ApprovedData and analyticsspreadsheet

Spreadsheet formula builder

PL by Prompier Library ☆☆☆☆☆ New Version 1 · updated Nov 10, 2026
Reviewed by moderator Prompier Library on Nov 10, 2026. Checked for personal data, secrets, risky instructions and a clear license.

About this prompt

Builds and explains a spreadsheet formula for your task, with a test example and a simpler alternative. Use it when you know what you need to calculate but not the syntax.

Prompt text

You are a spreadsheet expert who explains formulas clearly. Write a formula for my task. Inputs - What I want to calculate: {{task}} - Where the data is (sheet, columns, row range, headers): {{data_layout}} - Special conditions (blank cells, text numbers, dates, exceptions): {{conditions}} - Spreadsheet program and version: {{program}} Steps 1. Restate the calculation in one sentence and list any assumptions about the layout. 2. If a detail needed to write a correct formula is missing (for example which column holds the date), ask up to 3 questions first. 3. Write the formula using the exact cell references I gave. Use functions that exist in the stated program version. If you must use a newer function, offer an older alternative. 4. Explain each part in plain language, in order of evaluation. 5. Show a worked example with 3 to 4 sample rows and the expected result, so I can compare with my sheet. 6. List how it handles blanks and errors, and suggest a protected version if useful. 7. Mention one common mistake, such as numbers stored as text or relative references that shift when copied. Output format - Formula (in a code block) - How it works (numbered) - Test example (small table) - Edge cases - Simpler or alternative approach Quality bar - Do not invent column names or ranges. - Prefer clear formulas over clever ones. - Say plainly if the task cannot be done with a single formula.

Variables

4 variables
VariableWhat to enterExampleDefault
{{task}}What you want the formula to doTotal sales for each salesperson in March—
{{data_layout}}Which columns hold what, and where the data startsA: date, B: salesperson, C: amount; rows 2 to 500—
{{conditions}}Rules or special cases to handleIgnore blank amounts and refunds marked negative—
{{program}}The spreadsheet program you useExcel—

Try it

Live preview
What you want the formula to do
Which columns hold what, and where the data starts
Rules or special cases to handle
The spreadsheet program you use
Your finished prompt
You are a spreadsheet expert who explains formulas clearly. Write a formula for my task. Inputs - What I want to calculate: {{task}} - Where the data is (sheet, columns, row range, headers): {{data_layout}} - Special conditions (blank cells, text numbers, dates, exceptions): {{conditions}} - Spreadsheet program and version: {{program}} Steps 1. Restate the calculation in one sentence and list any assumptions about the layout. 2. If a detail needed to write a correct formula is missing (for example which column holds the date), ask up to 3 questions first. 3. Write the formula using the exact cell references I gave. Use functions that exist in the stated program version. If you must use a newer function, offer an older alternative. 4. Explain each part in plain language, in order of evaluation. 5. Show a worked example with 3 to 4 sample rows and the expected result, so I can compare with my sheet. 6. List how it handles blanks and errors, and suggest a protected version if useful. 7. Mention one common mistake, such as numbers stored as text or relative references that shift when copied. Output format - Formula (in a code block) - How it works (numbered) - Test example (small table) - Edge cases - Simpler or alternative approach Quality bar - Do not invent column names or ranges. - Prefer clear formulas over clever ones. - Say plainly if the task cannot be done with a single formula.

Sample output

Formula (sum of sales in column C where region in column B is 'North' and date in A is in March 2025): =SUMIFS(C2:C500, B2:B500, "North", A2:A500, ">="&DATE(2025,3,1), A2:A500, "<"&DATE(2025,4,1)) How it works 1. SUMIFS adds column C where all conditions are true. 2. The date conditions create a window from 1 March up to, but not including, 1 April. Test example | A | B | C | | 03-Mar-2025 | North | 100 | | 15-Mar-2025 | South | 50 | | 02-Apr-2025 | North | 70 | Expected result: 100. Edge case: if dates are stored as text the formula returns 0; convert them first.

An example the author shared. Your result will differ.

Reviews

No written reviews yet. If you have used this prompt, tell others how it went.