AI prompts: Code and spreadsheets
Formulas, scripts, errors — even without experience. Replace the words in [brackets] with yours.
Spreadsheet formula
In Google Sheets column A has dates, column B amounts. Write a formula that sums the current month and explain each part.
Understand an error
Here is the error message and the code (paste). Explain what went wrong in plain words and give a fixed version.
A small script
Write a Python script that [task]. Comment every step and add instructions to run it on Windows.
Code review
Review this code (paste) like a senior developer: bugs, risky parts, what to simplify. Most important first.
Share your prompt
4 rules of a good prompt
- Role and taskTell the AI who to be and what to do: “You are an experienced accountant. Explain…”
- Answer formatA list, a table, under 100 words, 3 options — AI follows a format better than “keep it short”.
- An exampleShow one sample of what you want. It beats any explanation.
- Refine step by stepNot right? Don’t restart — say what to fix: “shorter”, “no jargon”, “add numbers”.