A prompt for an Excel formula
Copy this into ChatGPT, Claude, Gemini or any other AI. It is the professional version of a request most people type in a few words.
1What most people type
“excel formula to add up sales by month”
2The professional prompt
I need an Excel formula that adds up my sales by month. My data is in a table where one column holds the date of each sale ([date column, e.g. A]) and another holds the sale amount ([amount column, e.g. B]), with headers in row 1. Please give me a formula that totals the sales for a given month, and show me how to set it up so I can see a total for each month in a separate summary area.
If my dates might span more than one year, make sure the formula keeps the same month in different years apart. Explain briefly what each part of the formula does, and show a small example with sample data so I can check I have it right. If there is more than one good approach, such as SUMIFS, SUMPRODUCT or a PivotTable, give me the simplest one first and mention the others in a sentence each, saying when they would be better.
Please assume I use a recent version of Excel, and say so if any part of your answer needs a newer version. If you need to know how my dates are stored (real dates or text) to give a correct answer, ask me before answering.
Before you use it, replace each [highlighted part] with your own details.
Why this version works
- I added placeholders for your date and amount columns so the formula matches your sheet.
- Asking about multiple years stops January of different years from being added together by mistake.
- Requesting a short example and explanation lets you check the formula works and adjust it yourself.
- Letting the AI ask about text dates avoids a formula that returns zero for no obvious reason.
Make it even better
- Describe what you want the formula to do, including what result you expect to see in the cell.
- Share your column layout, such as which columns hold which data, and give a few sample rows.
- Mention which Excel version you use, since some formulas only work in newer versions.
Free · no sign-up
Need something different?
Say what you want in your own words and the Prompt Translator writes the professional prompt for you.
More prompts for work
An email to your bossSummarising meeting notesReplying to an angry customerA presentation outlineSummarising a long document
This prompt was written by an AI through our Prompt Translator, exactly as a visitor would get it. Read it and adjust it before you use it. See the whole prompt library.