Google Sheets CELL Function: Syntax, Examples & Tips

The CELL function retrieves information about a specific cell's formatting, location, or contents in a Google Sheets document.
Google Sheets
CELL(info_type, reference)

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

On this page
  1. Parameters
  2. What is the CELL Function?
  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 specified reference. This can include options like "address", "filename", "row", "column", etc.

reference:
A cell or range of cells for which you want to obtain the information specified by info_type. This can be a direct cell reference (e.g., A1) or a range (e.g., A1:B2).

What is the CELL Function?

The CELL function in Google Sheets is a useful tool that provides information about the formatting, location, or contents of a cell. It can return various types of information, such as the cell's address, its format, or its content type. This function is particularly helpful for auditing and analyzing data within your spreadsheets.

In simpler terms, the CELL function allows you to extract specific details about a cell, which can be beneficial for data validation and management.

A Practical Example

Imagine you are working on a financial report and need to analyze the data in your spreadsheet:

Financial Data Table:

ABC
AmountCategoryDate
1000Income01/01/2023
-500Expense01/02/2023
200Income01/03/2023

You want to determine the format of the cells in the Amount column to ensure they are all formatted as currency.

CELL Formula

To achieve this, you would use the CELL function as follows:

Google Sheets
=CELL("format", A2)

In this formula:

  • "format" is the info_type argument that specifies you want to retrieve the cell's format.
  • A2 is the reference to the cell you want to analyze.

Result of the Formula

When you apply the CELL formula to the Amount column, the output would indicate the format of the specified cell. For example, if A2 is formatted as currency, the output might be something like "C".

Example Output:

Cell ReferenceFormat
A2C
A3C
A4C

This indicates that all cells in the Amount column are formatted as currency.

Why Use CELL?

The CELL function is beneficial because it provides insights into the properties of cells, which can help you maintain consistency in your data formatting. It can also assist in debugging formulas by allowing you to check the type of data contained in a cell.

Key Takeaways:

  • CELL: A function that retrieves information about a cell's formatting, location, or contents.
  • Versatile: Can return various types of information, making it suitable for data validation and auditing.
  • Data Management: Helps ensure consistency in data formatting and assists in debugging formulas.
  • Common Use Cases: Ideal for financial reports, data analysis, and any scenario where understanding cell properties is necessary.

The CELL function is an essential tool for anyone working with data in Google Sheets, providing valuable insights that enhance data management and analysis capabilities.

Happy spreadsheeting!

Example use case

You have a table with product IDs in Column A and their prices in Column B. By using the CELL function, you can easily identify the format of the price cells, ensuring consistency in data entry and preventing errors in your financial reports.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets 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.