Debug Broken Spreadsheet Formulas and Lookup Errors in Canvas
Audits spreadsheet formula exports to pinpoint syntax mistakes, circular references, and lookup mismatches with side-by-side corrections.
You get: Summary Table, corrected Formulas and edge Case Warnings
Prompt
Act as a senior spreadsheet engineer and financial systems analyst. I will paste a list of broken spreadsheet formulas, their cell references, and the error codes they return (such as #N/A, #REF!, or #VALUE!).
Your job is to inspect each formula and deliver clean, working replacements in ChatGPT Canvas.
Rules:
1. Classify each issue strictly into one of three buckets: Syntax/Typo, Circular Reference/Range Conflict, or Lookup/Type Mismatch.
2. For every broken formula, provide the exact corrected formula ready to paste into Excel or Google Sheets, using standard uppercase formula names.
3. Include a concise, one-sentence explanation of what failed and why the fix works.
4. If an error stems from missing data or mismatched text-versus-number formatting, provide a defensive wrapper such as IFERROR or TRIM.
Output format:
- Summary Table: Columns for Cell Reference, Original Error, Error Type, and Root Cause.
- Corrected Formulas: Numbered list displaying the Cell Reference, the Original Formula in an inline code span, the Corrected Formula in a code block, and a short explanation line.
- Edge Case Warnings: Bullet list highlighting any assumptions made about sheet tab names, locale separators, or data ranges that could still cause errors.Example output
Tips and common edits
Why this works
- Classifying formulas into three error buckets forces the model to diagnose underlying data types instead of only patching obvious syntax.
- Requiring defensive wrappers like TRIM and IFERROR prevents recurring errors caused by subtle spacing bugs or missing source rows.
- Canvas side-by-side formatting keeps original code, fixes, and cell coordinates aligned so they can be copied directly back to sheets.
Paste your failing spreadsheet formulas, target cell coordinates, and error messages directly below this prompt in ChatGPT Canvas mode.
Common edits
- Swap modern XLOOKUP suggestions back to classic INDEX/MATCH syntax if your team supports older on-premise Excel versions.
- Add a rule instructing ChatGPT to switch comma separators to semicolons for European desktop spreadsheet locales.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Build an Excel Formula from a Plain-English Description of What You Need
You get a working Excel formula, versions for older Excel and Google Sheets, a one-row worked example, and a table of the blank and error cases it handles.
Translate plain English requests into Google Sheets QUERY
Transforms plain business questions into working Google Sheets QUERY formulas with correct syntax, quotation marks, and date formats.
Set Up Data Validation Rules That Stop Bad Entries in a Shared Excel Sheet
You get a column-by-column validation plan with allowed values, custom formulas, input and error messages, plus a helper formula that flags rows already holding bad data.
Fix an Excel or Google Sheets Formula That Returns an Error or Wrong Result
Get a ranked list of the likely reasons your formula fails, a quick check for each, and a corrected formula you can paste straight into your sheet.
Excel and Google Sheets Formula Builder With a Plain-English Explanation
Writes the formula for what you want a spreadsheet to do, in both Excel and Google Sheets syntax, explains each part, and gives a test case so you can check it works.
Write an Excel or Google Sheets Formula from Plain English
Get a ready-to-paste Excel or Google Sheets formula built for your version and columns, with a step-by-step walkthrough and one test case to check it.
- Write a Google Apps Script to Automate a Repetitive Google Sheets Task
- Highlight matching values across two separate spreadsheet columns
- Debug SQL query errors and incorrect row counts
- Deduplicate spreadsheet rows keeping latest entry
- Build an Employee Shift Schedule and Hours Tracker with Overtime in Excel
- Build an Inventory Tracker Spreadsheet with Reorder Points and Low-Stock Alerts