sodcalculator

10 Tech How-To

Excel TYPE Function Not Working? Fix It Fast

Guide 10-34324 · Updated · Step by step

If the TYPE function in Excel is returning errors, wrong values, or showing as #NAME?, this guide walks you through the most common causes and the exact fixes. You’ll learn how to check your syntax, handle cell references, and avoid the pitfalls that trip up most users.

What You’ll Need

  • A computer with Microsoft Excel installed (any recent version).
  • The workbook that contains the problem formula.
  • Basic familiarity with entering formulas in Excel.

Step-by-Step

  1. Check the function name. Make sure you typed =TYPE( exactly. A common typo is =TYPO( or =TYP(. If Excel shows #NAME?, it usually means the function name is misspelled or not recognized.
  2. Verify the argument. The TYPE function expects exactly one argument: a value or a reference to a cell. For example, =TYPE(A1) is correct. If you accidentally put a comma or semicolon inside (like =TYPE(A1, B1)), you’ll get a #VALUE! error. Remove extra arguments.
  3. Check for circular references. If the cell you’re referencing contains the formula itself, you’ll get a circular reference warning. For instance, if cell A1 contains =TYPE(A1), Excel will complain. Change the reference to a different cell.
  4. Look at the cell format. The result of TYPE is a number (1 for number, 2 for text, 4 for logical, 16 for error, 64 for array). If the cell is formatted as text, you might see the formula as text instead of a result. Select the cell, go to the Home tab, and change the number format to General, then re-enter the formula (press F2, then Enter).
  5. Test with a simple value. In a blank cell, type =TYPE(123). You should get 1. Then try =TYPE("hello") (with quotes) – you should get 2. If these work, the problem is with your specific data or reference.
  6. Check for merged cells. If the referenced cell is part of a merged range, TYPE might return #VALUE! or an unexpected result. Unmerge the cells or use a direct reference to the top-left cell of the merged range.
  7. Ensure the cell isn’t empty. If the referenced cell is completely empty, TYPE returns 1 (because an empty cell is treated as a number, 0). That’s normal behavior, not an error.
  8. Use the function in a new sheet. Sometimes a corrupted workbook can cause issues. Copy your data to a new workbook and try the formula there. If it works, your original file may have a problem.

Common Mistakes

  • Using the wrong argument separator: In some locales, Excel uses a semicolon (;) instead of a comma (,) to separate arguments. If you type =TYPE(A1, B1) when your system expects semicolons, you’ll get an error. Use the separator that appears in your formula bar hints.
  • Forgetting quotes for text: To check if a string is text, you must put it in double quotes: =TYPE("text"). Without quotes, Excel treats it as a named range or function, leading to #NAME?.
  • Expecting TYPE to return the data type of a formula result: TYPE returns the type of the value that the referenced cell contains. If A1 contains the formula =1+1, TYPE(A1) returns 1 (number), not the formula’s text.
  • Using TYPE on a range: TYPE only works on a single cell reference. If you give it a range like =TYPE(A1:A5), you’ll get a #VALUE! error. Use a single cell reference.

Tips

  • Combine with IF for data validation: Use =IF(TYPE(A1)=2, "Text", "Not Text") to quickly check if a cell contains text.
  • Use TYPE to debug formulas: If a formula returns an error, checking the type of the intermediate values can help you spot where a text string snuck in.
  • Remember the result codes: 1 = number, 2 = text, 4 = logical (TRUE/FALSE), 16 = error value, 64 = array. Keep this list handy.
  • Press F9 to evaluate: When editing a formula, highlight the part you want to check (e.g., A1) and press F9. Excel will show the value, which can help you understand what TYPE is seeing.

Troubleshooting

If you still get #NAME?: Make sure the function is spelled correctly and that you’re not using a non-English version of Excel where the function might be called TIPO (Spanish) or TYPE (English). If you’re using a localized version, check the function name in your language.

If you get #VALUE!: Double-check that you have exactly one argument and that it’s a single cell reference, not a range. Also, ensure you haven’t accidentally typed a space before the parenthesis.

If the result is wrong (e.g., shows 1 for text): The cell might be formatted as text, causing Excel to treat the content as text even if it looks like a number. Select the cell, go to the Data tab, and use “Text to Columns” (just click Finish) to convert text-formatted numbers back to real numbers.

If the formula doesn’t recalculate: Press F9 to force a recalculation. Also, check that Calculation Options (on the Formulas tab) is set to Automatic.

Frequently Asked Questions

Why does TYPE return 1 for a cell that appears empty?

An empty cell is treated as a number with a value of 0, so TYPE returns 1. If you want to check for truly empty cells, use ISBLANK instead.

Can TYPE distinguish between a date and a number?

No. Dates are stored as numbers in Excel, so TYPE will return 1 for a date. To check if a cell contains a date, use the ISNUMBER and ISDATE functions (though ISDATE is not a built-in Excel function; you can use ISNUMBER and check the number format).

What does TYPE return for a cell with a formula that results in an error?

If the cell contains a formula that evaluates to an error (like #DIV/0!), TYPE returns 16 (error). However, if the cell contains the error as a literal value (typed in), TYPE also returns 16.

Does TYPE work with arrays?

Yes, if you reference an array constant like {1,2,3}, TYPE returns 64. But referencing a range of cells returns #VALUE! because it’s not a single value.

Why does my TYPE formula show as text (e.g., “=TYPE(A1)”) instead of a number?

This usually happens when the cell is formatted as Text. Change the cell format to General, then re-enter the formula by pressing F2 and Enter.

Is there a way to see the type of a cell without using TYPE?

You can use the ISNUMBER, ISTEXT, ISLOGICAL, and ISERROR functions, which return TRUE or FALSE. For example, =ISTEXT(A1) returns TRUE if A1 contains text.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →