Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets TYPE Function: How to Use It Step by Step

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The TYPE function in Google Sheets tells you what kind of data a cell contains, returning a number code instead of guessing. It takes one argument — a cell reference or value — and returns 1 for a number, 2 for text, 4 for a logical value (TRUE/FALSE), 16 for an error value, or 64 for an array. To use it, click an empty cell, type =TYPE(A1) (replacing A1 with your target cell), and press Enter. That's the whole process — below is a fuller walkthrough, plus the mistakes people commonly make.

What You'll Need

  • A Google account and access to Google Sheets (free at sheets.google.com)
  • A spreadsheet with at least one cell of data you want to inspect
  • No add-ons, extensions or special setup are required — TYPE is built into every Google Sheets account

Step-by-Step

  1. Open your spreadsheet at sheets.google.com, or create a new one by clicking Blank.
  2. Make sure you have some data in a cell to test — for example, type a number into cell A1, some text into A2, and =1/0 into A3 (which produces an error).
  3. Click an empty cell where you want the result, such as B1.
  4. Type the formula starting with an equals sign: =TYPE(A1)
  5. Press Enter (or Return). The cell will display a number code.
  6. Interpret the code: 1 = number, 2 = text, 4 = logical value (TRUE or FALSE), 16 = error value (like #DIV/0!), 64 = array.
  7. To check more cells, drag the fill handle (the small blue square in the corner of the result cell) down or across, and the formula will adjust to each referenced cell automatically.
  8. Optionally, combine TYPE with IF for readable output, for example: =IF(TYPE(A1)=2, "It is text", "It is not text")
  9. You can also pass a value directly instead of a cell reference: =TYPE("hello") returns 2, and =TYPE(42) returns 1.

Common Mistakes

  • Forgetting the equals sign. Typing TYPE(A1) without the leading = makes Sheets treat it as plain text.
  • Expecting the function's name, not a code. TYPE returns a number, not the word "number" or "text". If you want readable labels, wrap it in IF or IFS.
  • Confusing dates. Dates in Sheets are stored as numbers, so TYPE returns 1 for a date, not something date-specific.
  • Quoting a cell reference. =TYPE("A1") checks the literal text "A1" and always returns 2, instead of checking the cell A1.
  • Confusing TYPE with ISTEXT/ISNUMBER. Those functions return TRUE/FALSE for one specific type; TYPE returns the general category code. Pick the one that fits your formula.
  • Missing argument. =TYPE() with nothing in the parentheses returns an error — the function requires exactly one value.

Tips

  • Use TYPE inside larger formulas to handle cells differently depending on their content — for example, only performing math when TYPE(cell)=1.
  • TYPE never returns 16 for a formula that merely could error — it evaluates the actual result, so it is a quick way to detect error values in a column.
  • For simple checks, ISNUMBER, ISTEXT and ISERROR are often easier to read in formulas you will revisit later.
  • Leading apostrophes matter: a value entered as '123 is stored as text, and TYPE will correctly report 2 even though it looks like a number.
  • TYPE is case-insensitive, so =type(A1) works exactly the same as =TYPE(A1).

Troubleshooting

  • Formula shows as plain text. The cell is probably formatted as plain text. Select the cell, open Format > Number and choose Automatic, then re-enter the formula.
  • You get #NAME? error. Check the spelling — it must be TYPE, with no extra characters. Also confirm the formula starts with =.
  • You get #N/A or #VALUE! error. Make sure you supplied exactly one argument and that any cell reference actually exists.
  • The result is 16. That is not a malfunction — the referenced cell itself contains an error value. Click that cell to see what the underlying error is.
  • The result doesn't match what you expect. Click the referenced cell and look at the formula bar to see how the value is actually stored — visual appearance can be deceiving, especially with numbers stored as text.
  • Nothing updates after changing the source cell. Make sure the sheet's calculation isn't paused. If you suspect settings issues, open File > Settings and check the Calculation tab is set to recalculate on change.

Frequently Asked Questions

What does TYPE return for a date?

1 (number). Google Sheets stores dates as serial numbers, so TYPE treats them as numbers. To check for a date specifically, look at the cell's formatting instead.

Can TYPE check multiple cells at once?

Not directly — it accepts a single value. To check many cells, fill the formula down a column so each row checks its own cell, or use ARRAYFORMULA with a helper approach.

Is TYPE the same as CELL?

No. CELL("type", A1) returns "v" for values, "l" for labels (text) or "b" for blank, and can also report formatting details. TYPE returns numeric category codes. They overlap but serve different purposes.

What is the code 64 (array) used for?

It appears when TYPE is given an array or range result, which mostly happens in advanced formulas with ARRAYFORMULA. In everyday use on a single cell you will rarely see it.

Does TYPE exist in Excel too?

Yes, Excel has an identical TYPE function with the same return codes, so formulas using TYPE generally transfer between the two programs without changes.

Will TYPE detect an empty cell?

An empty cell returns 1, because Sheets treats a blank as the number 0. To detect blanks specifically, use ISBLANK instead.