Excel Formula Debugger Online
Paste the formula, pick the error your spreadsheet shows, and this excel formula debugger online ranks the likely causes at once. Where the fix is mechanical, it shows the corrected formula.
- Free to use
- No account required
- Instant results
- Sent to the AI only when you press the button
Broken formula
Likely causes (instant, rule-based)
- High confidence
VLOOKUP asks for column 4 of a 3-column table
Products!A2:C200 has only 3 columns, but the formula asks for column 4, so VLOOKUP returns #REF!.
Fix: Widen the table range so it includes the column you want, or lower the number. INDEX/MATCH or XLOOKUP avoid counting columns.
AI diagnosis
Example result (nothing was sent)The table range Products!A2:C200 has only 3 columns, but the formula asks for column 4, so VLOOKUP returns #REF!. The price is in column D, which is outside the range. The formula also has no fourth argument, so it would use approximate match on unsorted codes.
Suggested formula (changes highlighted)
=VLOOKUP(A2,Products!A2:removed: C200added: D200,4added: ,FALSE)
This fix assumes
- Prices are in column D of the Products sheet, rows 2 to 200.
- Each product code appears once in column A and you want an exact match.
How to prevent it
- Use XLOOKUP or INDEX/MATCH so inserting a column does not change which column is returned.
- Turn the product list into an Excel table so the range grows with new rows.
- Once the lookup works, IFNA(…,"Unknown code") can label codes that are genuinely missing.
Fixes are suggestions: test them on a copy of your file.
Your data: Your text is sent to our server and to the AI provider only when you press the button. We do not store it with your identity, and nothing is sent before that.
How to use
- Paste the formula that shows the error (Excel, Google Sheets or LibreOffice Calc, English function names).
- Pick the error: #VALUE!, #REF!, #N/A, #NAME?, #DIV/0!, #NUM!, #NULL!, #SPILL!, ### or circular reference.
- Read Likely causes. They appear instantly, ranked as high, medium or low confidence. Each one explains the cause in plain words and how to fix it. When the fix is mechanical, it shows a corrected formula with the changes highlighted.
- For a circular reference, type the cell that holds the formula (for example D20) so the tool can check whether it includes itself.
- If the rules are not enough, describe your data and press Ask the AI for a diagnosis that takes your data into account.
- Copy the fixed formula or download the full report.
Examples
#REF! from VLOOKUP. =VLOOKUP(A2,Products!A2:C200,4) gives "VLOOKUP asks for column 4 of a 3-column table". The AI, told that prices are in column D, suggests =VLOOKUP(A2,Products!A2:D200,4,FALSE). It lists its assumptions: prices are in column D, and codes are unique.
#NAME? from curly quotes. =IF(A1=“Yes”,1,0), pasted from an email, is diagnosed with high confidence. The mechanical fix is =IF(A1="Yes",1,0).
Circular reference. =SUM(D2:D20) in D20 is reported as "The formula refers to its own cell". The AI suggests =SUM(D2:D19).
Tips and limits
- The rule engine has 33 rules. They cover smart quotes, unbalanced brackets and quotes, and semicolon or comma separators. They catch unknown or misspelled functions, functions too new for your version, a missing colon in a range and text without quotes. They find a literal #REF! in the formula, column numbers past the table, approximate-match lookups, and numbers stored as text. They spot extra spaces, INDEX/MATCH ranges that do not line up, mismatched SUMIFS sizes, division by empty cells, a space between ranges, IRR that does not converge, blocked spill ranges, narrow columns, negative times and self-references.
- The rules only see the formula, not your file. Causes that depend on cell contents, such as text numbers or trailing spaces, are marked medium or low confidence.
- Formulas can be up to 8,000 characters and the data description up to 2,000.
- An AI correction is checked on our server: function names against a list of about 500 per app, plus brackets, quotes and separators. A failed check shows a warning. A fix always comes with the assumptions it depends on.
- You can send 10 AI requests per 10 minutes. The rule-based causes keep working when the AI is unavailable.
FAQ
Why do I get #VALUE! when the cells look fine?
A cell can look like a number and still be text, for example a value pasted from a web page with a non-breaking space, or a number with a thousands separator typed as text. Arithmetic on text gives #VALUE!. Check the cell with ISTEXT().
What is the difference between #N/A and #REF!?
#N/A means a lookup did not find the value: the formula works, but the data has no match. #REF! means the formula points at cells that do not exist, such as a deleted column or a column number past the table.
Should I just wrap everything in IFERROR?
No. IFERROR hides every error, including real mistakes, so wrong totals go unnoticed. Fix the cause first. Then, if some errors are expected, wrap only that part, and prefer IFNA for lookups. This tool never offers a wrapper as the fix.
Does it change my spreadsheet?
No. It only reads the formula you paste. You copy the fix yourself.
Why does a fix say "assumes"?
Every correction depends on something the tool cannot see, such as which column holds the price. The assumptions tell you what to check before you trust the fix.
Does it work for Google Sheets and LibreOffice?
Yes. Pick the app, so that function names and version limits are checked against the right list.
Privacy note
The rule-based causes are computed in your browser and send nothing. When you press Ask the AI, the formula, the error, the cell and your description are sent to our server and to the AI provider to produce the answer. We do not store them with your identity, and identical requests may be answered from a short-lived cache. The example answer shown when the page opens is saved in the page and sends nothing.
Guides for this tool
Spreadsheet & Formula StudioFix #SPILL! in Excel: Clear the Blocked Range
What a #SPILL! error means, the usual blockers of a spill range, and how to clear them for FILTER, UNIQUE or a multi-column lookup.
3 min read
Spreadsheet & Formula StudioFind the Missing Bracket in a Long Excel Formula
How to find the bracket that never closes in a long Excel formula by position, fix it, and check the structure afterwards.
3 min read
Spreadsheet & Formula StudioFix #DIV/0! in Excel Without Hiding Real Errors
Why Excel shows #DIV/0! for a ratio or an average, and how to test the divisor with IF instead of hiding every error with IFERROR.
3 min read
Spreadsheet & Formula StudioExcel Formula Needs Semicolons: Fix the Separator
Why a pasted formula is rejected with "There's a problem with this formula", and how to switch it to semicolons in Excel and Google Sheets.
4 min read