How to Get Specific Information About Cells in Excel 2013
The CELL function in Excel 2013 is the basic information function for getting all sorts of data about the current contents and formatting of a cell. The syntax of the CELL function is
CELL(info_type,[reference])
The info_type argument is a text value that specifies the type of cell information you want returned. The optional reference argument is the reference of the cell range for which you want information. When you omit this argument, Excel specifies the type of information specified by the info_type argument for the last cell that was changed in the worksheet.
When you specify a cell range as the reference argument, Excel returns the type of information specified by the info_type argument for the first cell in the range (that is, the one in the upper-left corner, which may or may not be the active cell of the range).
The table shows the various info_type arguments that you can specify when using the CELL function. Remember that you must enclose each info_type argument in the CELL function in double-quotes (to enter them as text values) to prevent Excel from returning the #NAME? error value to the cell containing the CELL function formula.
So, for example, if you want to return the contents of the first cell in the range B10:E80, you enter the following formula:
=CELL("contents",B10:E80)
The CELL Functions info_type Arguments
| CELL Function info_type Argument |
Returns This Information |
| "address" |
Cell address of the first cell in the reference as text using
absolute cell references |
| "col" |
Column number of the first cell in the reference |
| "color" |
1 when the cell is formatted in color for negative values;
otherwise returns 0 (zero) |
| "contents" |
Value of the upper-left cell in the reference |
| "filename" |
Filename (including the full pathname) of the file containing
the cell reference: returns empty text ("") when the workbook
containing the reference has not yet been saved |
| "format" |
Text value of the number format of the cell: Returns "-" at the
end of the text value when the cell is formatted in color for
negative values and "()" when the value is formatted with
parentheses for positive values or for all values |
| "parentheses" |
1 when the cell is formatted with parentheses for positive
values or for all values |
| "prefix" |
Text value of the label prefix used in the cell: Single quote
(') when text is left-aligned; double quote (") when text is
right-aligned; caret (^) when text is centered; backslash (\) when
text is fill-aligned; and empty text ("") when the cell contains
any other type of entry |
| "protect" |
0 when the cell is unlocked and 1 when the cell is locked |
| "row" |
Row number of the first cell in the reference |
| "type" |
Text value of the type of data in the cell: "b" for blank when
cell is empty; "l" for label when cell contains text constant; and
"v" for value when cell contains any other entry |
| "width" |
Column width of the cell rounded off to the next highest
integer (each unit of column width is equal to the width of one
character in Excel’s default font size) |
The following table shows the different text values along with their number formats (codes) that can be returned when you specify format as the info_type argument in a CELL function.
Text Values Returned by the format info_type
| Text Value |
Number Formatting |
| "G" |
General |
| "F0" |
0 |
| ",0" |
#,##0 |
| "F2" |
0.00 |
| ",2" |
#,##0.00 |
| "C0" |
$#,##0_);($#,##0) |
| "C0-" |
$#,##0_);[Red]($#,##0) |
| "C2" |
$#,##0.00_);($#,##0.00) |
| "C2-" |
$#,##0.00_);[Red]($#,##0.00) |
| "P0" |
0% |
| "P2" |
0.00% |
| "S2" |
0.00E+00 |
| "G" |
# ?/? or # ??/?? |
| "D4" |
m/d/yy or m/d/yy h:mm or mm/dd/yy |
| "D1" |
d-mmm-yy or dd-mmm-yy |
| "D2" |
d-mmm or dd-mmm |
| "D3" |
mmm-yy |
| "D5" |
mm/dd |
| "D7" |
h:mm AM/PM |
| "D6" |
h:mm:ss AM/PM |
| "D9" |
h:mm |
| "D8" |
h:mm:ss |
For example, if you use the CELL function that specifies format as the info_type argument on cell range A10:C28 (which you’ve formatted with the Comma style button on the Formula bar), as in the following formula
=CELL("format,A10:C28)
Excel returns the text value ",2-" (without the quotation marks) in the cell where you enter this formula signifying that the first cell uses the Comma style format with two decimal places and that negative values are displayed in color (red) and enclosed in parentheses.

Excel Glossary
active cell
The worksheet cell that contains the cell cursor. Each worksheet can have only one active cell.

Excel Glossary
AutoComplete
A feature that looks at the entries that you make in a worksheet column and automatically duplicates them in subsequent rows whenever you start a new entry that begins with the same letter or letters as an existing entry in that column.

Excel Glossary
AutoCorrect
A feature that alerts Excel 2007 to common typing errors and your own typing errors (that you specify) and tells the program how it should automatically fix them for you.

Excel Glossary
AutoFill
An Excel 2007 feature that quickly creates a series of entries based on the data you enter in one or two cells. AutoFill works with days of the week, months of the year, yearly quarters; consecutive series of numbers; and formulas. You also can add your own custom AutoFill series.

Excel Glossary
AutoFilter
A feature in Excel 2010 that enables you to temporarily hide everything in a table except the records you specifically want to view, based on criteria you specify.

Excel Glossary
Backstage view
A new feature in Excel 2010 — accessible from the green File tab — that enables you to manage files and to view the properties and stats about the workbook file you're editing.

Excel Glossary
cell
The intersection of a column and row in the worksheet.

Excel Glossary
cell address
The cell identifier, determined by its column letter(s) followed by the row number, as in cell A1, the very first cell of each worksheet at the intersection of column A and row 1.

Excel Glossary
cell cursor
The black border that surrounds the active cell in a worksheet.

Excel Glossary
clip art
Readymade drawings, illustrations, and photos offered by Microsoft for use in Microsoft Office applications.

Excel Glossary
Compatibility Checker
A utility in Excel 2007 and 2010 that you use to find potential compatibility issues if you plan to save an Excel workbook file in the older Excel 97–2003 file format.

Excel Glossary
current cell
The worksheet cell that contains the cell cursor. Each worksheet can have only one current cell.

Excel Glossary
data table
A range of cells in a worksheet in which you enter a series of possible values that Excel plugs into a formula so you can perform what-if analysis on the data.

Excel Glossary
dialog box
A rectangular window with settings and commands that appears when you click a dialog box launcher or certain other commands on the Ribbon.

Excel Glossary
dialog box launcher
A small icon in the lower-right corner of a group of command buttons on the Ribbon that you click to access a dialog box with additional related settings and commands.

Excel Glossary
function
A part of a formula that takes a number of specific arguments and then returns a single value based on those arguments.

Excel Glossary
gallery
A drop-down list of thumbnail selections that appears when you click certain command buttons on the Ribbon.

Excel Glossary
group
A section of a tab on the Excel 2007 Ribbon that organizes related command buttons into subtasks normally performed as part of the tab's larger core task. The name of a group appears at the bottom of the group, such as the Font group on the Home tab.

Excel Glossary
hyperlink
Specially formatted text that anyone can click to jump to Web sites, move to other cells or workbooks, or create an e-mail message.

Excel Glossary
keyboard shortcuts
A combination of keys that you can press to execute certain commands, as opposed to finding and clicking the commands' buttons on the Ribbon or elsewhere.

Excel Glossary
Live Preview
A feature in Excel 2007 that enables you to point to thumbnails on a drop-down gallery to see how a new font, font size, table style, or cell style would look on your selected data before you actually apply it.

Excel Glossary
macro
A series of commands or actions in Excel that are recorded and saved together in a file. You can run the macro whenever you need to perform the task.

Excel Glossary
Name box
The left-most section of the Formula bar that displays the address or name of the current cell.

Excel Glossary
pivot table
A special type of table unique to Excel 2007 that enables you to summarize large amounts of data and pivot or rearrange the table's data to display different summaries of the information it contains.

Excel Glossary
Ribbon
A new feature of the Excel 2007 interface that replaces the menus and toolbars of previous versions; appears at the top of the Excel window, just below the title bar.

Excel Glossary
ScreenTip
A small window that displays descriptive text when you point to but don't click a command on the Ribbon or other objects in a worksheet.

Excel Glossary
sheet tabs
Small tabs near the bottom of a worksheet that you click to move between the worksheets in a workbook. You can assign descriptive names to sheet tabs.

Excel Glossary
slicers
New graphic objects in Excel 2010 that enable you to quickly filter the contents of a PivotTable on more than one field.

Excel Glossary
SmartArt
A type of graphic object in Excel 2007 that gives you the ability to quickly and easily construct graphical lists and diagrams in the worksheet.

Excel Glossary
sparklines
Tiny graphs (miniature charts) that fit within a single cell in the worksheet, used to show basic trends in data.

Excel Glossary
Status bar
A horizontal bar that appears at the bottom of the Excel 2007 window and keeps you informed of Excel's current mode. In addition, you can use the Status bar to select a new worksheet view and to zoom in and out on the worksheet.

Excel Glossary
tabs
The various "pages" of Excel 2007's Ribbon interface that you click to display command buttons relating to the tab's name, such as Page Layout and Formulas.

Excel Glossary
template
A pre-designed worksheet that can be used as a basis for creating new worksheets.

Excel Glossary
WordArt
Stylized text objects that you use to add pizzazz and emphasis to headings and other text in Excel 2007 worksheets.

Excel Glossary
workbook
The basic file type that you create when you use Excel 2007. A new workbook consists of three worksheets by default.

Excel Glossary
worksheet
The main document that you work in when you enter data into cells within Excel 2007. A worksheet is stored in a workbook file.

Excel Glossary
worksheet area
The portion of an Excel 2007 worksheet in which you enter cell data and add objects such as charts and graphics.

Excel Glossary
XPS XML Paper Specification
A file format developed by Microsoft that enables people to open and print documents in XPS Reader without access to the original programs with which the documents were created (such as Excel).

Excel Glossary
Zoom slider
An object on the Status bar in Excel 2007 that enables you to increase the magnification in a worksheet or shrink it down to get an overall picture of the worksheet data.