# The Excel function: CELL

## Description

The **CELL** function returns information about the formatting, location, or contents of a cell. For example, if you want to verify that a cell contains a numeric value instead of text before you perform a calculation on it, you can use the following formula:

**=IF(CELL("type", A1) = "v", A1 * 2, 0)**

This formula calculates A1*2 only if cell A1 contains a numeric value, and returns 0 if A1 contains text or is blank.