Excel CELL Function: Syntax, Examples & Tips

The =CELL(info_type, [reference]) formula retrieves details about a cell's formatting, location, or contents in Excel.
Excel
=CELL(info_type, [reference])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single CELL formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a CELL Formula in Excel?
  3. A Practical Example
  4. CELL Formula
  5. Result of the Formula
  6. Why Use CELL?
  7. Key Takeaways:
  8. Example use case

Parameters

info_type:
A text string that specifies the type of information you want to retrieve about the cell. This can include options like "address", "color", "contents", "filename", "format", "parentheses", "protect", "row", "type", "width", etc.

reference:
An optional argument that specifies the cell or range of cells for which you want to retrieve information. If omitted, the function returns information about the last cell that was changed.

What is a CELL Formula in Excel?

The CELL function in Excel is a versatile tool that provides information about the formatting, location, or contents of a cell. It allows you to retrieve specific details about a cell, such as its address, format, or the type of data it contains. This can be particularly useful for auditing, data validation, or dynamic reporting.

In simpler terms, the CELL function helps you gather metadata about cells, making it easier to understand and manipulate your data.

A Practical Example

Imagine you are working on a project tracking spreadsheet, and you have the following data in an Excel spreadsheet:

Project Data Table:

Project NameStart DateStatus
Project A01/01/2023Active
Project B02/15/2023Completed
Project C03/10/2023Active
Project D04/05/2023On Hold

You want to find out the address of the cell that contains the status of "Project B".

CELL Formula

To retrieve the address of the cell containing the status for "Project B", you would use the CELL formula as follows:

Excel
=CELL("address", C3)

Breakdown of the Formula:

  • "address": This is the info_type argument that specifies you want the cell address.
  • C3: This is the reference to the cell whose information you want to retrieve (in this case, the status of Project B).

Result of the Formula

When you apply the formula, it returns the address of the cell that contains the status for Project B. The output would be:

Cell Address
$C$3

Here, the address indicates that the status for Project B is located in cell C3.

Why Use CELL?

The CELL function is particularly useful when you need to gather information about cell properties dynamically. It allows you to audit your data, validate inputs, or create reports that adapt based on the underlying data structure.

Key Takeaways:

  • CELL: Retrieves information about the formatting, location, or contents of a cell.
  • Dynamic Data Insights: Helps you gather metadata that can be used for auditing or reporting.
  • Common Use Cases: Ideal for data validation, dynamic reporting, and understanding cell properties in your spreadsheets.

Understanding how to use the CELL function can significantly enhance your data management capabilities in Excel, enabling you to extract valuable insights about your datasets.

Happy analyzing!

Example use case

You have a spreadsheet that lists various products in Column A, their prices in Column B, and their stock levels in Column C. You can use the CELL function to retrieve information about the formatting of the price column, such as whether the prices are formatted as currency. This helps in ensuring consistency in data presentation and assists in identifying any discrepancies in how product prices are displayed, which is crucial for accurate financial reporting and inventory management.

Beyond the CELL function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.