20 of the best prompts for Excel formulas, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.

20 of the best prompts for Excel formulas, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.
Published June 27, 2026
Many users struggle to effectively use Excel formulas to analyze data and automate calculations. These prompts help users create, troubleshoot, and optimize their Excel formulas across various scenarios. This guide walks you through every stage of Excel Formulas, from Basic Formula Creation all the way through Optimizing Formulas, with a curated, copy-ready prompt at each step. Each stage targets a specific phase of the process so you always know exactly what to ask and what output to expect. Works with ChatGPT, Claude, and Gemini and any other major AI tool.
Understanding how to create basic formulas is essential for any Excel user. These prompts will guide you through writing simple formulas for common tasks.
Create a SUM formula
"I need to calculate the total of several numbers in an Excel spreadsheet. I have the following numbers that I want to sum up: [PASTE NUMBERS]. Please write a SUM formula that I can easily input into Excel. The formula should be formatted correctly to ensure it works seamlessly. Additionally, if any of the numbers are negative, highlight those in your response so I can address them separately."
Write an AVERAGE formula
"I need to calculate the average of a set of values for my [PROJECT/ASSIGNMENT]. The values I want to include are: [PASTE VALUES]. Please create an AVERAGE formula that I can enter into Excel. Ensure the formula is structured correctly and can handle a range of cells. Also, if any of the values are non-numeric or blank, note them separately so I can address those issues before finalizing my calculations."
Construct a COUNTIF formula
"I have a list of items in column A of my Excel spreadsheet and want to count how many times [SPECIFIC ITEM] appears. Please help me write a COUNTIF formula to achieve this. The formula should be placed in cell [PASTE CELL LOCATION] and should return the total count as a single number. Additionally, ensure that the formula accounts for any variations in case (e.g., uppercase vs. lowercase). If [SPECIFIC ITEM] is not found, return a message stating 'Item not found'."
Create a CONCATENATE formula
"I need to create a full name by combining the first name in cell [CELL A] and the last name in cell [CELL B]. This will help me streamline data entry for my contacts. Please write a CONCATENATE formula to achieve this, ensuring that the output is displayed in cell [CELL C]. The final output should be in the format: 'First Last'. If either cell is empty, note it separately in cell [CELL D] with a message indicating which name is missing."
Write a simple IF formula
"I need to create an IF formula for a spreadsheet I am working on. The formula should check if the value in cell [PASTE CELL REFERENCE] is greater than [PASTE THRESHOLD VALUE]. If it is, it should return '[PASTE POSITIVE RESULT]'; otherwise, it should return '[PASTE NEGATIVE RESULT]'. Please ensure the formula is written in a way that it can be easily copied to other cells. Additionally, if the value is equal to [PASTE THRESHOLD VALUE], note that separately."
Advanced formulas can enhance your data analysis significantly. Use these prompts to explore more complex formulas and functions.
Use VLOOKUP for data retrieval
"I need to analyze a dataset containing product information. I have a table where product IDs are listed in column A and their corresponding prices in column B. Write a VLOOKUP formula to find the price of the product with ID [PRODUCT ID]. Ensure that the formula returns the price in a cell formatted as currency. If the product ID does not exist in the table, output 'Not Found' instead of an error."
Create a nested IF formula
"I need to create a nested IF formula to assign letter grades based on scores in a specific range. The scores are located in cell [PASTE CELL], and I want to categorize them as follows: A for 90 and above, B for 80-89, C for 70-79, and F for below 70. Write the formula that will output the corresponding letter grade in the adjacent cell. Additionally, if any score is missing or not a number, note it separately in a designated cell."
Write a SUMIF formula
"I need to create a SUMIF formula for a dataset I am analyzing. The data is organized with values in column B and corresponding criteria in column A. I want to sum the values in column B where the corresponding value in column A matches [SPECIFIC CRITERIA]. Please provide me with the complete formula in Excel format. Additionally, if there are any entries in column A that do not match the criteria, note them separately for further review."
Construct a INDEX-MATCH formula
"I need to retrieve a name from a data table where the ID in column A matches [SPECIFIC ID]. The table contains multiple columns, and I want to ensure I get the correct name corresponding to the provided ID. Please write an INDEX-MATCH formula for this scenario, using the appropriate cell references for the ID and name. Additionally, if the ID is not found, return a message stating 'ID not found' instead of an error."
Create an ARRAY formula
"I need to calculate the total sales from two different ranges in my data analysis. I am working with sales data for [PASTE TIME PERIOD] and want to sum the values in ranges [RANGE 1] and [RANGE 2]. Write an ARRAY formula that combines these two ranges. Ensure the formula is formatted correctly for Excel and returns a single total value. If there are any empty cells in either range, note them separately for review."
Debugging Excel formulas can be tricky without the right approach. These prompts will help you identify and fix common formula errors.
Identify circular references
"I suspect my formula in cell [CELL REFERENCE] is creating a circular reference, and I need help identifying the issue. I have been working on a spreadsheet that involves [PASTE DATA] and I want to ensure my calculations are accurate. Please analyze the formula and provide a clear explanation of the circular reference, along with suggested fixes. List your recommendations in bullet points, and highlight any specific cells that may be contributing to the problem."
Troubleshoot #VALUE! errors
"I am troubleshooting a formula in my Excel sheet that is returning a #VALUE! error when I use [PASTE FORMULA]. This formula is intended to [PASTE INTENDED FUNCTION]. Please help me identify potential causes for this error and suggest ways to fix it. Provide a list of at least three common issues that could lead to a #VALUE! error, along with specific solutions for each. If there are any unusual inputs in my data that might contribute to the error, note those separately."
Resolve #DIV/0! errors
"I need to troubleshoot my Excel formula that is returning a #DIV/0! error due to division by zero. I have the following formula: [PASTE FORMULA]. Please rewrite this formula to avoid the error by checking if the denominator is zero before performing the division. Present the corrected formula in a clear format. Additionally, if there are any instances where the denominator is zero, note them separately for further review."
Fix incorrect results in VLOOKUP
"I need to troubleshoot a VLOOKUP formula that is returning incorrect results in my Excel spreadsheet. Here is the formula I am using: [PASTE VLOOKUP FORMULA]. Please help me identify the potential issues and suggest corrections. Provide a list of at least three common errors to check, along with explanations for each. If there are specific data types or ranges that need to be verified, note those separately."
Diagnose #N/A errors
"I need to troubleshoot a formula in my Excel sheet that returns a #N/A error when using VLOOKUP. This issue arises when the lookup value cannot be found in the specified range. Please provide the modified formula based on this draft: [PASTE FORMULA]. Ensure the solution accounts for cases where the lookup value is missing and suggest a way to display a user-friendly message instead. Additionally, if there are multiple instances of #N/A, note them separately for further review."
Optimized formulas can improve performance and reduce calculation time. Use these prompts to enhance the efficiency of your Excel formulas.
Combine multiple conditions in formulas
"I need to create a formula that checks multiple conditions in Excel for a data set I am analyzing. The conditions I want to include are: [PASTE CONDITIONS]. Please write an optimized formula that efficiently evaluates these conditions and returns a result based on the criteria specified. Ensure the formula is structured clearly and is easy to modify for future use. Additionally, flag any instances where the conditions are not met, so I can review them separately."
Simplify a complex formula
"I need to simplify a complex Excel formula I'm currently using: [PASTE COMPLEX FORMULA]. This formula is crucial for my data analysis, but it's becoming unwieldy and slowing down my calculations. Please help me rewrite it to make it more efficient while ensuring it retains the same functionality. Provide the simplified formula in a clear format, and include a brief explanation of any changes made. If there are any potential errors in the original formula, note those separately."
Use named ranges for clarity
"I need to improve the readability of my Excel formulas by using named ranges. I have a complex spreadsheet with various data sets, and I want to enhance clarity for future users. Please suggest how to create named ranges for [PASTE RANGES] and rewrite my formulas accordingly. Provide three examples of how the new formulas would look using these named ranges. If any named range overlaps with existing names, note it separately to avoid confusion."
Create dynamic formulas with OFFSET
"I need to create a dynamic range in my Excel sheet that expands automatically based on my data. I am working with a dataset located in [PASTE RANGE]. Please write a formula using OFFSET that allows this range to adjust as I add or remove data. The output should include the complete formula and a brief explanation of how it functions. If there are any errors in the formula, note them separately for correction."
Optimize performance with helper columns
"I have a formula in my Excel spreadsheet that is slow to calculate, and I want to improve its performance. I need suggestions on how to effectively use helper columns to optimize the calculations. Here is the current formula I'm using: [PASTE FORMULA]. Please provide a detailed step-by-step approach to implement helper columns, including at least three specific examples of how these changes can enhance efficiency. If any potential pitfalls arise, note them separately for further consideration."
Relative references change when you copy a formula to another cell, while absolute references do not. Use the dollar sign ($) to create absolute references.
You can use the 'Evaluate Formula' tool in Excel to step through your formulas and see how each part calculates. This helps to identify where errors may be occurring.
Some common functions include SUM, AVERAGE, IF, VLOOKUP, and COUNTIF. Familiarizing yourself with these can greatly enhance your data analysis skills.
To create a dropdown list, select a cell, go to the Data tab, click on 'Data Validation', and choose 'List'. Provide the source of the list items.
If your Excel file is slow, try optimizing formulas, reducing the number of calculations, and checking for excessive formatting or large data sets.
AI Prompts for Resolving Conflicting API Routes
Lovable may generate API endpoints or page routes that conflict with existing ones, causing unexpected behavior in your application.
See promptsAI Prompts for Eliminating Unnecessary Abstraction Layers
Lovable creates wrapper functions or utility layers for logic used only once, causing unnecessary complexity.
See promptsAI Prompts for Managing Context Window Limits
Bolt runs out of context mid-task, causing it to lose progress on large codebases.
See prompts