CELL(info_type, reference)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
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).
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.
Imagine you are working on a financial report and need to analyze the data in your spreadsheet:
| A | B | C |
|---|---|---|
| Amount | Category | Date |
| 1000 | Income | 01/01/2023 |
| -500 | Expense | 01/02/2023 |
| 200 | Income | 01/03/2023 |
You want to determine the format of the cells in the Amount column to ensure they are all formatted as currency.
To achieve this, you would use the CELL function as follows:
=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.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".
| Cell Reference | Format |
|---|---|
| A2 | C |
| A3 | C |
| A4 | C |
This indicates that all cells in the Amount column are formatted as currency.
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.
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!
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.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.