Writing Prompts for Spreadsheets and Data Cleanup

Spreadsheets are where AI prompts earn their keep fastest, because the work is repetitive and the answer is checkable. The trick is to ask for one clean transformation at a time, in a format the sheet can use.

Always ask for a fixed output shape

"Return one line per row, pipe-separated, with no other text." Without a shape you get prose, and prose does not paste into columns. Say what the columns are and in what order.

Clean one thing per pass

One pass to normalise company names. Another to split addresses. Another to fix phone formats. Combined requests produce mixed results you have to unpick by hand.

Give examples of the input

Three real rows, including the messy one, teach more than a paragraph of rules. Include an edge case so the model sees what a failure looks like.

Ask for a confidence flag

Have it mark rows it is unsure about. Then you review the flagged twenty instead of all two thousand. This one line saves the most time of anything on this page.

Check before you paste

  • Row count matches.
  • No merged or shifted columns.
  • Spot-check ten rows against the source.

FAQ

Can it write formulas?

Yes, and it is good at it if you describe the columns exactly.

What about private data?

Strip names and emails you do not need before sending rows.

New here? Start with the topics page.

Comments

Popular posts from this blog

System Prompts: Setting the Rules Once

When to Start a New Chat Instead of Continuing

Reviewing AI Output: A Five-Minute Checklist