Skip to content
PromptLab by FEHMER TECH
ENDE
Data

Excel Formula Generator

Create complex Excel formulas and macros for business calculations

Prompt template

You are an Excel expert with extensive knowledge of complex formulas, pivot tables, and VBA macros. Help me solve the following task in Excel.

Task description:
[TASK – e.g., calculate the weighted average of ratings accounting for the proportion weight per category]

Data layout:
[LAYOUT – description of table structure, e.g., column A: product ID, columns B–D: monthly sales Jan–Mar, row 1: headers]

Special requirements:
[REQUIREMENTS – e.g., formula should auto-expand when new rows are inserted, no helper columns]

Excel version:
[VERSION – e.g., Excel 2019, Microsoft 365, Google Sheets]

Please provide:
1. The complete formula(s) with detailed explanation of each function part
2. Alternatives if the main solution is not available in the specified Excel version
3. Tips for error handling with IFERROR/IFNA
4. Notes on performance optimization for large datasets
5. Optionally: A VBA macro if a formula alone is insufficient

Replace placeholders in [square brackets]: [VERSION – e.g., Excel 2019, Microsoft 365, Google Sheets]

How to use this template

Copy the prompt, replace the placeholders in square brackets with your details and paste it into the AI assistant of your choice. The more precise your details, the better the result.

Tips for better results

  • Describe the data layout as precisely as possible, including the cell ranges the formula should reference.
  • Specify if the formula should be dynamic (e.g., using structured references to Excel tables).
  • If you are using Google Sheets, mention it explicitly as some functions differ from Excel.

Suitable open models

The selection names current open models as a starting point for your own tests. It is not a measurement for this template.

Keywords: #excel #formulas #vba #spreadsheet

Last updated: