Correct a ##### error This error indicates that a column is not wide enough to display all of its content, or that a negative date or time is used in a cell. Causes- The column is not wide enough to display the content.
- Dates and times are negative numbers.
Resolution- Increase the width of the column to fit the text by doing the following:
- Select the column by clicking the column header.
- On the Home tab, in the Cells group, click Format.
- Under Cell Size, click AutoFit Column Width.
- Shrink the text size of the contents to fit the column by doing the following:
- Select the column by clicking the column header.
- On the Home tab, in the Alignment group, click the Dialog Box Launcher next to Alignment.
- Under Text control, select the Shrink to fit check box.
- Apply a different number or date format.
In some cases, you can change the number or date format of a cell to make its contents fit within the existing cell width. For example, you can decrease the number of decimal places after the decimal point or switch from a Long Date to a Short Date format. - If you are using the 1900 date system, dates and times in Microsoft Office Excel must be positive values.
- When you subtract dates and times, make sure that you build the formula correctly.
- If a formula that you use to calculate dates or times is correct but results in a negative value, do the following to display that value in a format that is not a date or time format:
- On the Home tab, in the Number group, click the Dialog Box Launcher next to Number.
- In the Category box, click a number format that is not a date or time format.
Correct a #DIV/0! error Excel displays the #DIV/0! error when a number is divided either by zero (0) or by a cell that contains no value. Causes- Entering a formula that performs explicit division by zero (0) — for example, =5/0.
- Using a reference to a blank cell or to a cell that contains zero as the divisor in a formula or function that performs division.
- Running a macro that uses a function or a formula that returns the #DIV/0! error.
ExampleWhen you copy the example data to a blank worksheet, the formulas in cells A3, A4, and A5 all return a #DIV/0! error. How do I copy an example? - Select the example in this article.
Important Do not select the row or column headers. Selecting an example from Help - Press CTRL+C.
- In Excel, create a blank workbook or worksheet.
- In the worksheet, select cell A1, and press CTRL+V.
Important For the example to work properly, you must paste it into cell A1 of the worksheet. - To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
After you copy the example to a blank worksheet, you can adapt it to suit your needs.
| A |
---|
1 | 0 | =A1/0 | =A1/A2 | =QUOTIENT(A1,A2) |
|
Resolution- Make sure that the divisor in the function or formula is not zero (0) or blank.
- Change the cell reference in the formula to another cell that does not contain a zero or a blank value.
- Enter the value #N/A in the cell that is referenced as the divisor in the formula.
Entering #N/A will change the result of the formula to #N/A from #DIV/0! to indicate that the divisor value is not available. - Prevent the error value from being displayed by using the IF worksheet function. You can then display 0 or any string as the result.
For example, if the formula that produces the error is =A1/A2, use =IF(A2=0,"",A1/A2) to return an empty string, or =IF(A2=0,0,A1/A2) to return 0.
Correct a #N/A error This error indicates that a value is not available to a function or formula CausesResolution- Optionally, if error checking is turned on in Excel, click the button that appears next to the cell that displays the error , click Show Calculation Steps if it appears, and then click the resolution that is appropriate for your data.
Tip Review the following resolutions to help determine which option to click. - If you manually entered #N/A in a cell, replace it with actual data if that data is now available. For example, if you entered #N/A in cells where data is not yet available, formulas that refer to those cells also return #N/A instead of attempting to calculate a value. If you enter a value instead, the error should be resolved in the cells that contain the formulas.
- Make sure that the lookup_value argument (argument: The values that a function uses to perform operations or calculations. The type of argument a function uses is specific to the function. Common arguments that are used within functions include numbers, text, cell references, and names.) that you entered in a HLOOKUP, LOOKUP, MATCH, or VLOOKUP worksheet function is the correct type of value. For example, verify that you entered a value or a cell reference instead of a range reference.
For information about using the correct arguments with functions, see HLOOKUP function, LOOKUP function, MATCH function, or VLOOKUP function. - By default, functions that look up information in tables must be sorted in ascending order. However, the VLOOKUP and HLOOKUP worksheet functions contain arange_lookup argument that instructs the function to find an exact match even if the table is not sorted. To find an exact match, set the range_lookup argument to FALSE.
The MATCH worksheet function contains a match_type argument that specifies the order the list must be sorted in to find a match. If the function cannot find a match, try changing the value of the match_type argument. To find an exact match, set the match_type argument to 0. - If an array formula has been entered into multiple cells, make sure that the ranges that are referenced by the formula have the same number of rows and columns, or enter the array formula into fewer cells. For example, if the array formula has been entered into a range that is 15 rows high (C1:C15) and the formula refers to a range that is 10 rows high (A1:A10), the range C11:C15 will display #N/A. To correct this error, enter the formula into a smaller range (for example, C1:C10), or change the range to which the formula refers to the same number of rows (for example, A1:A15).
- Enter all required arguments in the function that returns the error.
- Make sure that the workbook that contains the worksheet function is open and that the function is working properly.
- Make sure that the arguments in the function are correct and are used in the correct position.
Correct a #NAME? error This error occurs when Microsoft Office Excel does not recognize text in a formula. Causes- The EUROCONVERT function is used in a formula, but the Euro Currency Tools add-in is not loaded.
- A formula refers to a name (name: A word or string of characters in Excel that represents a cell, range of cells, formula, or constant value.) that does not exist.
- A formula refers to a name that is not spelled correctly.
- The name of a function that is used in a formula is not spelled correctly.
- You may have entered text in a formula without enclosing it in double quotation marks.
- A colon (:) was omitted in a range reference.
- A reference to another sheet is not enclosed in single quotation marks (').
- A workbook that you open calls a user-defined function (UDF) that is not available on your computer.
Resolution- Optionally, if error checking is turned on in Excel, click the button that appears next to the cell that displays the error , click Show Calculation Steps if it appears, and then click the resolution that is appropriate for your data.
Tip Review the following resolutions to help determine which option to click. - The EUROCONVERT function requires that the Euro Currency Tools add-in (add-in: A supplemental program that adds custom commands or custom features to Microsoft Office.) is installed on your computer. To install this add-in, do the following:
- Click the Microsoft Office Button , click Excel Options, and then click the Add-ins category.
- In the Manage list box, click Excel Add-ins, and then click Go.
- In the Add-Ins available list, select the Euro Currency Tools check box, and then click OK.
- Make sure that a name (name: A word or string of characters that represents a cell, range of cells, formula, or constant value. Use easy-to-understand names, such as Products, to refer to hard to understand ranges, such as Sales!C20:C30.) that you refer to in a formula does indeed exist by doing the following:
- On the Formulas tab, in the Defined Names group, click Name Manager.
- In the Name Manager dialog box, verify that the name is listed.
- If the name is not listed, close the dialog box and then add the name by clicking Define Name in the Defined Names group.
- Correct the spelling of a misspelled name that you referred to in a formula by doing the following:
- Select the cell that contains the formula that you want to check for misspelled names.
- In the formula bar (formula bar: A bar at the top of the Excel window that you use to enter or edit values or formulas in cells or charts. Displays the constant value or formula stored in the active cell.) , select the misspelled name in the formula, and then press F3.
- In the Paste name box, click the name that you want to use, and then click OK.
- Insert the correct function name in the formula that results in the error by doing the following:
- Select the cell that contains the formula containing the misspelled function.
- In the formula bar (formula bar: A bar at the top of the Excel window that you use to enter or edit values or formulas in cells or charts. Displays the constant value or formula stored in the active cell.) , select the misspelled function name.
- In the Name Box (to the left of the formula bar), click the arrow and then select a function from the list that Excel suggests.
If you can't find the function that you want to use, click More Functions to see all available worksheet functions. Then locate the function that you want to use. - In the Function Arguments dialog box, review the argument values and then click OK to complete the formula.
Enclose text in the formula in double quotation marks. For example, the following formula joins the text "The total amount is " with the value in cell B50: ="The total amount is "&B50 - Make sure that all range references in the formula use a colon (:). For example, SUM(A1:C10).
- If the formula refers to values or cells in other worksheets or workbooks, and the name of the other worksheet or workbook contains a nonalphabetical character or a space, you must enclose its name within single quotation marks ( ' ) in the formula.
- When a user-defined function (UDF) that is not available on your computer is called from a workbook that you open, you (or a developer) can implement a UDF in several ways. For more information, see Visual Basic Help and the Microsoft Office SharePoint Server 2007 Software Development Kit (SDK).
Correct a #NULL! error This error occurs when you specify an intersection of two areas that do not intersect. The intersection operator is a space character between references. Causes- You may have used an incorrect range operator.
- Ranges do not intersect.
Resolution- Optionally, if error checking is turned on in Excel, click the button that appears next to the cell that displays the error , click Show Calculation Steps if it appears, and then click the resolution that is appropriate for your data.
Tip Review the following resolutions to help determine which option to click. - Make sure that you use a correct range operator by doing the following:
- To refer to a contiguous range of cells, use a colon (:) to separate the reference to the first cell in the range from the reference to the last cell in the range. For example, SUM(A1:A10) refers to the range from cell A1 to cell A10 inclusive.
- To refer to two areas that don't intersect, use the union operator, the comma (,). For example, if the formula sums two ranges, make sure that a comma separates the two ranges (SUM(A1:A10,C1:C10)).
- Change the reference so that the ranges intersect. An intersection is a point in a worksheet where data in two or more ranges cross, or "intersect." An example of a formula that includes intersecting ranges is =CELL("address",(A1:A5 A3:C3)). In this example, the CELL function returns the cell address at which the two ranges intersect — A3.
When you enter or edit a formula , cell references and the borders around the corresponding cells are color-coded.
Color-coded cell references The first cell reference is B3, the color is blue, and the cell range has a blue border with square corners. The second cell reference is C3, the color is green, and the cell range has a green border with square corners.
- If there are no squares at each corner of the color-coded border, the reference is to a named range.
- If there are squares at each corner of the color-coded border, the reference is not to a named range.
Do one of the following: - Change references that are not to a named range by doing the following:
- Double-click the cell that contains the formula you want to change. Excel highlights each cell or range of cells with a different color.
- Do one of the following:
- To move a cell or range reference to a different cell or range, drag the color-coded border of the cell or range to the new cell or range.
- To include more or fewer cells in a reference, drag a corner of the border.
- In the formula, select the reference, and type a new one.
- Press ENTER.
- Change references that are to a named range by doing the following:
- Do one of the following:
- Select the range of cells that contains formulas in which you want to replace references with names.
- Select a single cell to change the references to names in all formulas on the worksheet.
- On the Formulas tab, in the Defined Names group, click the arrow next to Define Name, and then click Apply Names.
- In the Apply Names box, click one or more names.
Correct a #NUM! error This error indicates that a formula or function contains invalid numeric values CausesResolution Correct a #REF! error This error occurs when a cell reference (cell reference: The set of coordinates that a cell occupies on a worksheet. For example, the reference of the cell that appears at the intersection of column B and row 3 is B3.) is not valid. CausesExampleCopy the example data to a blank worksheet, and then delete column D (the entire column). The formulas, which were originally in column E, shift to column D and they all display a #REF! error. If you select cell D2, Excel displays the formula =SUM(B2,C2,#REF!) in the formula bar. How do I copy an example? - Select the example in this article.
Important Do not select the row or column headers. Selecting an example from Help - Press CTRL+C.
- In Excel, create a blank workbook or worksheet.
- In the worksheet, select cell A1, and press CTRL+V.
Important For the example to work properly, you must paste it into cell A1 of the worksheet. - To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
After you copy the example to a blank worksheet, you can adapt it to suit your needs.
| A | B | C | D | E |
---|
Region | 2006 Sales | 2007 Sales | 2008 Sales | Formula |
---|
East | 22700 | 24200 | 11000 | =SUM(B2,C2,D2) | North | 17400 | 17800 | 10200 | =SUM(B3,C3,D3) | South | 18600 | 18500 | 9600 | =SUM(B4,C4,D4) | West | 21800 | 23300 | 10300 | =SUM(B5,C5,D5) |
|
An error is displayed because the formulas in column E referred to column D and, because column D was deleted, the formula is no longer valid. Instead of repairing the formulas to refer to a different cell — which may not be what you want anyway — Excel displays this error to prompt you to correct the formulas yourself so that you don't get unexpected results. In this case, you repair the formulas by removing ",#REF!" from the formula in D2, and then dragging the formula down to the cells below. Resolution Correct a #VALUE! error Excel can display the #VALUE! error if your formula includes cells that contain different data types. If smart tags are turned on and you position the mouse pointer over the smart tag, the ScreenTip displays "A value used in the formula is of the wrong data type." You can typically fix this problem by making minor changes to your formula. Causes- One or more cells that are included in a formula contain text, and your formula performs math on those cells by using the standard arithmetic operators (+, -, *, and /).
For example, the formula =A1+B1, where A1 contains the string "Hello" and B1 contains the number 3, returns the #VALUE! error. - A formula that uses a math function, such as SUM, PRODUCT, or QUOTIENT, contains an argument that is a text string instead of a number.
For example, the formula PRODUCT(3,"Hello") returns the #VALUE! error because the PRODUCT function requires numbers as arguments. - Your workbook uses a data connection, and that connection is unavailable.
ExampleWhen you copy the example data to a blank worksheet, the formulas in cells A4 and A5 return a #VALUE! error; however, cells A6 and A7 return the correct value of 30. How do I copy an example? - Select the example in this article.
Important Do not select the row or column headers. Selecting an example from Help - Press CTRL+C.
- In Excel, create a blank workbook or worksheet.
- In the worksheet, select cell A1, and press CTRL+V.
Important For the example to work properly, you must paste it into cell A1 of the worksheet. - To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
After you copy the example to a blank worksheet, you can adapt it to suit your needs.
| A |
---|
10 | Hello | 20 | =A1+A2+A3 | =SUM(A1+A2+A3) | =SUM(A1,A2,A3) | =SUM(A1:A3) |
|
Resolution- Instead of using arithmetic operators, use a function, such as SUM, PRODUCT, or QUOTIENT to perform an arithmetic operation on cells that may contain text, and avoid using arithmetic operators in the function. Instead, separate the arguments by using commas.
- Ensure that none of the arguments in a math function, such as SUM, PRODUCT, or QUOTIENT, contain text as an argument.
- If your workbook uses a data connection, take the steps that are required to restore the data connection or, if it is possible, consider importing the data.
|