thinkhard.SI

Prompt repository Data & spreadsheets

Set up data validation rules so a shared spreadsheet stays clean

Several people type into the same spreadsheet and you want dropdowns, limits and checks that stop bad entries before they happen.

Registry no.
DAT-034
Collection
Data & spreadsheets
Laid out for
Any chat model
Score
10 out of 10
Blanks to fill
5
Added

Data & spreadsheetsAny chat

The prompt

Score 10 of 10, Excellent

Use it when Several people type into the same spreadsheet and you want dropdowns, limits and checks that stop bad entries before they happen.

  • {{tool}}
  • {{columns}}
  • {{users}}
  • {{allowed_lists}}
  • {{past_problems}}
Full prompt and why it works
Prompt
Design data validation rules for the shared spreadsheet described below, for me to set up in {{tool}}, so the people who fill it in can only enter values the rest of the team can count, filter and report on.

Columns and what goes in each:
"""
{{columns}}
"""

Who fills it in and how (desktop or phone, how often): {{users}}
Lists of allowed values we already have (teams, product codes, statuses): {{allowed_lists}}
Problems we have had with entries so far: {{past_problems}}

Produce:
1. A table with the columns Column, Rule type (dropdown, whole number, decimal, date, text length or custom formula), Rule details (the exact range, list or formula), Input message (what the user sees on selecting the cell, under 15 words), Error message (what they see after a wrong entry, under 20 words, saying how to fix it), Reject or warn.
2. Step-by-step instructions to apply the first rule in {{tool}}, so I can repeat them for the rest.
3. Where to keep the dropdown lists, such as a separate sheet or a named range, and how to add a new value without breaking the rule.
4. A formula or conditional format that highlights existing entries the new rules would reject, so I can clean up what is already there.

Good here means rules that stop the problems we have had without making the sheet slow to fill in. For example, an error message might read: "Enter a date as month/day/year, such as 3/14/2026." This example shows the form only.

Use "reject" only where a wrong value would break a report or formula, and "warn" where an unusual value might still be right, such as a very large quantity. Do not invent allowed values: if a column needs a list I have not given, write [list needed] and describe what it should contain. Use only features {{tool}} supports; if a rule is not possible there, say so and suggest the nearest alternative. Keep the notes outside the table under 200 words.

Variables

{{tool}}
Your spreadsheet, for example "Excel for Microsoft 365" or "Google Sheets".
{{columns}}
Each column and what should go in it, for example "Status: one of open, waiting, done".
{{users}}
Who enters data and how, for example "12 site leads, mostly on phones, daily".
{{allowed_lists}}
Lists you already have, pasted or described. Write "none" if there are none.
{{past_problems}}
Bad entries you have seen, for example "dates typed as text, statuses spelled five ways".

Why it works

  • What good looks like. Rules are judged against the problems you have actually had, so the sheet gets stricter only where it needs to.
  • If unsure. Columns that need a list you have not given get [list needed] instead of invented allowed values.
  • Format. Every rule comes with its input and error message, each with a word limit, so people know how to fix an entry on the spot.

How to use it

  1. Press Fill in variables and type your details into each blank. What you type stays in this browser.
  2. Copy the filled prompt into the AI tool you already use, such as ChatGPT, Claude or Gemini, or open it in the Grader or the Prompt Tester here.
  3. Before you rely on it, try it on three or four real examples. The Prompt Tester runs them all at once and shows which ones go wrong.
Use it from code

Get this prompt as JSON from the free REST API, with your own text in the blanks, or let an AI assistant fetch it through the MCP server. No key.

curl -s https://thinkhard.si/api/v1/prompts/spreadsheet-data-validation-rules

With the MCP server added to Claude, ChatGPT, Cursor or VS Code, call get_prompt with {"prompt": "spreadsheet-data-validation-rules"}, or just ask for it by name.