Column too narrow
The cell contains a number, date, or time that is wider than the column can display, or a calculation resulted in a negative date.
Find every Excel error code in one place. Scan the table to the code you are seeing, then open its full explanation to learn what it means, why it happens, and exactly how to fix it.
| Error | What it means | Common cause | Quick fix | Seen in |
|---|---|---|---|---|
| ##### | The cell contains a number, date, or time that is wider than the column can display, or a calculation resulted in a negative date. | Column too narrow. The column is narrower than the value. | Double-click the column border to auto-fit. | DatesTimesAny |
| #DIV/0! | A formula is trying to divide a number by zero, or by a cell that is completely empty. | Divide by zero. Dividing by a blank or zero cell. | Ensure the divisor holds a number; wrap in IFERROR if zero is expected. | AVERAGEAVERAGEIFSMath |
| #NAME? | Excel does not recognize a formula name or text within your formula, usually because of a simple typo. | Unrecognized name. A misspelled function or unquoted text. | Fix the spelling, quote literal text, or check the Name Manager. | Any |
| #REF! | A formula points at a cell that no longer exists. | Invalid reference. A referenced cell was deleted. | Undo the delete, or rebuild the reference. | VLOOKUPINDEXAny |
| #N/A | Excel cannot find the specific data you are asking it to look for. This error almost exclusively happens when using lookup formulas. | Value not found. The lookup value isn't found. | Confirm it exists, trim spaces, and use an exact match. | VLOOKUPXLOOKUPINDEX |
| #NULL! | Your formula specifies two cell ranges that do not overlap, but asks Excel to find where they cross. This is almost always caused by a missing comma. | No intersection. A space instead of a comma between ranges. | Replace the space with a comma. | SUMAVERAGEAny |
| #NUM! | Your formula contains or resulted in an invalid number, an impossible mathematical calculation, or a number too large for Excel to handle. | Invalid number. An invalid or too-large number. | Keep inputs in valid ranges; add a guess for IRR / RATE. | LARGESMALLDATEDIF |
| #VALUE! | Your formula contains a data type that does not make sense (like trying to do math on a word instead of a number). | Wrong data type. Math on text, or a size mismatch. | Convert text to numbers; match range sizes. | VLOOKUPDatesMath |
| #SPILL! | Your formula is trying to output results into multiple cells at once (a "spill"), but something is blocking its path. | Blocked spill range. Something blocks the spill range. | Clear the cells in the spill path. | FILTERUNIQUESORT |
| #CALC! | Excel is trying to calculate a list of data (an array) but ran into a logical wall, usually because a list turned out to be completely empty. | Calculation error. A FILTER matched nothing. | Add the if_empty argument to FILTER. | FILTERLAMBDALET |
The cell contains a number, date, or time that is wider than the column can display, or a calculation resulted in a negative date.
A formula is trying to divide a number by zero, or by a cell that is completely empty.
#DIV/0! error, your final formula will catch it and break too. Fix the original broken cell first.=IFERROR(A2/B2, "No Data")).Excel does not recognize a formula name or text within your formula, usually because of a simple typo.
=VLOKUP instead of =VLOOKUP, Excel has no idea what you mean. Double-check the exact spelling of your formula name.=IF(A2=Apple) instead of ="Apple", Excel thinks "Apple" is a custom formula that doesn't exist. Always wrap plain text in quotation marks.=SUM(SalesData)), and you accidentally delete that name or spell it incorrectly, it will break. Check your Formulas → Name Manager.XLOOKUP or FILTER) on an older version of Excel (like Excel 2016), or a custom function that requires an add-in, Excel will not recognize the name.SUMME instead of SUM. If you paste an English formula into a foreign-language Excel, it will break.=SUM(A1A10) instead of =SUM(A1:A10), Excel thinks you are typing a custom word instead of selecting a group of cells. Always include the colon (:) between your starting and ending cells.A formula points at a cell that no longer exists.
#REF! error. You can fix this by adding dollar signs (like $A$1) to lock your references in place before copying.#REF! error because that column doesn't exist inside your selection. Ensure your index number is not larger than your selected table."Sheet2!A1"), but "Sheet2" is deleted or renamed, the reference instantly breaks. Double-check your sheet names.#REF! errors entirely.Excel cannot find the specific data you are asking it to look for. This error almost exclusively happens when using lookup formulas.
#N/A. Double-check that the item you are searching for actually exists in the list.TRIM function to clean your data.$A$1:$C$100), the search area slides downward. Eventually, it slides completely past your data, returning #N/A because the area it is searching is empty.FALSE or 0) at the end of formulas like VLOOKUP, HLOOKUP, or MATCH, Excel defaults to an "approximate" match. Approximate matches require your data to be sorted in ascending order (A–Z). If your data is unsorted, the formula will break and return #N/A even if the value actually exists. Always end these formulas with FALSE or 0.#N/A error, that error will travel up the chain and cause your primary formula to return #N/A as well. Fix the original broken cell first.IFNA function to display a clean message instead of an error (like =IFNA(VLOOKUP(...), "Not Found")).Your formula specifies two cell ranges that do not overlap, but asks Excel to find where they cross. This is almost always caused by a missing comma.
=SUM(A1 A10) instead of =SUM(A1, A10), or =SUM(A1:A5 B1:B5) instead of =SUM(A1:A5, B1:B5), you have accidentally put a space between them. In Excel, a space is a special command asking it to find where the two areas overlap. Since they do not touch, it returns #NULL!. Replace the space with a comma.=A1 A10 instead of =A1+A10, Excel thinks the space is the overlap command. If you meant to add, subtract, multiply, or divide the cells, replace the space with the correct math symbol.=SUM(A1:C5 B3:D7)), but you accidentally selected ranges that do not physically touch each other on the grid, Excel returns #NULL!.Your formula contains or resulted in an invalid number, an impossible mathematical calculation, or a number too large for Excel to handle.
#NUM!. For example:DATEDIF) require the older "start date" to come first. If you put them in backward so the start date is newer than the end date, it results in a negative time difference and returns #NUM!.=SQRT(-1)). Check your inputs to ensure they are mathematically possible.-1x10^307 and 1x10^307. If your formula multiplies or powers numbers into something larger than that massive limit (like =1000^1000), Excel gives up and returns #NUM!.IRR or RATE use complex math that guesses the answer over and over until it gets it right. If it cannot find a solution after 20 tries, it returns #NUM!. You can fix this by adding a comma and a manual "guess" number at the very end of your formula to help it start in the right direction.#NUM! error, that error will travel up the chain and cause your primary formula to return #NUM! as well. Fix the original broken cell first.Your formula contains a data type that does not make sense (like trying to do math on a word instead of a number).
=5+"Apple"), Excel gets confused and returns #VALUE!. Check the cells you are calculating to ensure they all contain actual numbers."5 "), Excel treats the entire cell as a word. When you try to do math on it, it returns #VALUE!. Use the TRIM function or Find & Replace to remove accidental spaces.#VALUE!. For example, if you give a date formula a word like "Tomorrow", or an invalid date like "Feb 30th", Excel cannot process it.0 or a negative number as the index number in a lookup formula (like VLOOKUP, HLOOKUP, INDEX, etc.), Excel returns #VALUE! because row and column numbers must start at 1. (Note: If the number is too large, it returns #REF! instead.)=A1:A100 + 5), older versions of Excel will break and return #VALUE! because they do not know how to handle multiple cells at once.#VALUE! error, that error will travel up the chain and cause your primary formula to return #VALUE! as well. Fix the original broken cell first.XLOOKUP, FILTER, or SUMPRODUCT), those groups usually must be exactly the same size. If you select 10 rows for your first group but only 9 rows for your second group, Excel cannot match them up and returns #VALUE!.Your formula is trying to output results into multiple cells at once (a "spill"), but something is blocking its path.
FILTER or UNIQUE), but one of the blank cells it needs to use already has text, numbers, or another formula inside it. Excel will not delete your existing data, so it stops and throws a #SPILL! error instead. Delete the blocking data to let it flow.Delete key on your keyboard to clear them out.#SPILL!. You must use these formulas in normal grid cells outside of the Table.=A:A), but you type the formula in row 2, it will try to push past the very bottom row of the entire spreadsheet (row 1,048,576). Because it runs out of physical grid space, it returns #SPILL!. Select a specific range (like A1:A500) instead of the entire column.Excel is trying to calculate a list of data (an array) but ran into a logical wall, usually because a list turned out to be completely empty.
FILTER formula to search for data, but absolutely no rows match your criteria, Excel doesn't know what to display. Instead of leaving the cell blank, it throws a #CALC! error. To fix this, always fill out the optional [if_empty] argument at the very end of your FILTER formula (like =FILTER(..., "No results found")).#CALC!.LAMBDA is an advanced feature that lets you build your own custom formulas from scratch. If your custom LAMBDA formula has a math error, a typo, or gets stuck in a loop, Excel will stop it and display #CALC!.LET formula allows you to name pieces of your calculation to use later. However, after naming all your pieces, you must always provide a final calculation at the very end of the formula. If you define your names but forget to give it a final math problem to solve, it returns #CALC!.FILTER, UNIQUE, or SORT) tries to read data from the exact same cells it is trying to output its answers into, it creates an infinite loop. Instead of crashing your computer, Excel safely halts the formula and returns #CALC!.