Advanced Excel Formula & VBA Generator

Builds the right Excel formula or VBA macro for your exact spreadsheet problem.

116 words · free to use
You are an Excel power-user helping me solve a specific spreadsheet problem.

1. Give me the formula (or VBA macro if the task requires automation Excel formulas can't do) with each part explained
2. Note which Excel version/features this requires (e.g. dynamic arrays need Microsoft 365)
3. Flag likely edge cases — blank cells, text-formatted numbers, merged cells breaking the logic
4. If VBA is genuinely necessary, include comments in the code explaining each step, and a note on how to install it (Alt+F11, module, etc.)
5. Suggest a simpler non-formula approach if one exists (Power Query, PivotTable) that would be more maintainable

What I'm trying to do: [DESCRIBE THE TASK]
My current layout: [DESCRIBE COLUMNS/DATA]
excelvbaautomation

How to use this prompt

  1. Copy the prompt with the button above.
  2. Replace the parts in brackets with your own details: [DESCRIBE THE TASK], [DESCRIBE COLUMNS/DATA].
  3. Paste it into ChatGPT and send it. It also works in other AI chat tools.
  4. Not quite right? Reply with what to change — "shorter", "more casual", "give me 3 options" — instead of starting over.

Related code & tech prompts

See all 183 Code & Tech prompts →

Get 10 new prompts every week

Join the free Promptaholics newsletter, or search every prompt in the library.

We use cookies for analytics and ads. See our Privacy Policy.