CELL Function

The CELL function retrieves detailed information about the formatting, location, or contents of a cell in Excel and Google Sheets.

ExcelExcel
Google SheetsGoogle Sheets
reference
intermediate
Syntax Preview
ExcelExcelGoogle SheetsGoogle Sheets
=CELL(info_type, [reference])
What is the CELL Function?

Practical Examples

Get Cell Address

Retrieve the absolute reference address of a specific cell

Result: $A$1

Check Cell Format Type

Determine if a cell contains text, number, or is blank

Result: v (for value/number) or l (for label/text) or b (for blank)

Get Column Width

Return the width of a column containing the specified cell

Result: 10 (character units)

Retrieve Cell Contents

Get the value or text stored in a referenced cell

Result: Contents of D2

Conditional Formatting Detection

Check if a cell has specific formatting applied for conditional logic

Result: Positive or Negative based on cell color

Common Errors and Solutions

#NAME?

CELL returns #NAME? error

Cause:

The info_type argument is not enclosed in double quotes, or you've misspelled an info_type option.

Solution:

Always wrap info_type in quotes: =CELL("address", A1) not =CELL(address, A1). Verify spelling of info_type matches supported options exactly.

Frequency: 35%

Example:

#VALUE!

CELL returns #VALUE! error

Cause:

The reference parameter is invalid, the cell reference doesn't exist, or you're using an Excel-specific info_type in Google Sheets.

Solution:

Verify the cell reference exists and is accessible. Check that your info_type is supported on your platform (Google Sheets has limited options).

Prevention:

Test formulas in your target environment and use only cross-platform compatible info_types.

Frequency: 25%

Example:

Unexpected Result

Incorrect or unexpected results

Cause:

Using info_type options not supported in your platform version, or relying on the default behavior when reference is omitted.

Solution:

Always specify the reference parameter explicitly. Test formulas in your target environment. Consult platform-specific documentation for supported info_type options.

Prevention:

Always specify the reference parameter rather than relying on default behavior.

Frequency: 20%

Example:

Performance Issues

Slow recalculation

Cause:

CELL is volatile and recalculates on any worksheet change, causing performance degradation in large workbooks with many CELL formulas.

Solution:

Minimize CELL usage in large spreadsheets. Consider converting CELL results to static values once initial analysis is complete. Use alternative non-volatile functions when possible.

Prevention:

Use CELL sparingly and convert to values when the analysis is complete.

Frequency: 15%

Best Practices and Advanced Tips

Volatile Function Performance

CELL is a volatile function that recalculates whenever any change occurs in the workbook. In large spreadsheets with numerous CELL formulas, this can significantly impact performance. Use CELL sparingly and consider converting results to static values.

Platform Compatibility

Google Sheets supports only a subset of Excel's info_type options. If building cross-platform workbooks, restrict yourself to: "address", "col", "contents", "row", "type", and "width".

Always Specify Reference

While the reference parameter is optional, omitting it causes CELL to return information about the last changed cell—a behavior that produces unpredictable results. Always explicitly specify which cell you're analyzing.

Combine with INDIRECT

CELL's real power emerges when combined with other reference functions. Use CELL("address", range) with INDIRECT to create dynamic reference systems that adapt to spreadsheet structure changes.

Need Help with CELL Function?

Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.

Example Excel formula:

Related Formulas

ADDRESS Function in Excel

The ADDRESS function creates a cell reference as text from row and column numbers. Learn syntax, examples, and error solutions for building dynamic references.

intermediate
reference
ExcelExcel
Google SheetsSheets
Validated
COLUMN Function in Excel

Master the COLUMN function to return column numbers in Excel and Google Sheets. Learn syntax, examples, and dynamic reference techniques for powerful formulas.

beginner
reference
ExcelExcel
Google SheetsSheets
Validated
INDIRECT Function

Master the INDIRECT function to create dynamic cell references from text strings. Learn syntax, examples, and solutions for flexible Excel formulas.

advanced
reference
ExcelExcel
Google SheetsSheets
Validated
ROW Function in Excel

The ROW function returns the row number of a cell reference or the current row if no reference is provided, essential for dynamic formulas and array operations.

beginner
reference
ExcelExcel
Google SheetsSheets
Validated