Cell function : Cell « Information functions « Microsoft Office Excel 2007 Tutorial

Home
Microsoft Office Excel 2007 Tutorial
1.Introduction
2.Editing
3.Format Style
4.Table
5.Chart
6.Formula
7.Workbook Worksheet
8.Wordart Clip Art Shape Picture
9.PivotTable PivotChart
10.Data Analysis
11.Macro ActiveX Add in
12.Security
13.Collaboration
14.Database functions
15.Date Time functions
16.Engineering functions
17.Information functions
18.Logical functions
19.Lookup Reference functions
20.Math Trigonometry functions
21.Statistical functions
22.Text functions
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Microsoft Office Excel 2007 Tutorial » Information functions » Cell 
17.1.1.Cell function

CELL("address", Reference) returns reference of the first cell in reference, as text.

CELL("col", Reference) returns column number of the cell in reference.

CELL("color", Reference) returns 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero).

CELL("contents" Value of the upper-left cell in reference; not a formula.

CELL("coord", Reference) returns absolute reference of the cell range of the first cell in reference, as text.

CELL("filename", Reference) returns filename (including full path) of the file that contains reference, as text.

CELL("format", Reference) returns text value corresponding to the number format of the cell.

CELL("parentheses", Reference) returns 1 if the cell is formatted with parentheses for positive or all values; otherwise returns 0.

CELL("prefix", Reference) returns text value corresponding to the "label prefix" of the cell.

CELL("protect", Reference) returns 0 if the cell is not locked, and 1 if the cell is locked.

CELL("row", Reference) returns row number of the cell in reference.

CELL("type", Reference) returns text value corresponding to the type of data in the cell.

CELL("width", Reference) returns column width of the cell rounded off to an integer.

Reference is the cell that you want information about. If omitted, information specified in info_type is returned for the last cell that was changed.

Reference from Excel help documentation

17.1.Cell
17.1.1.Cell function
17.1.2.=CELL ("address") returns the address of the last changed cell.=CELL (
17.1.3.=CELL("color", B3) tells whether B3 is formatted for color-negative numbers=CELL(
17.1.4.=CELL ("contents",B3) returns the contents of B3.=CELL (
17.1.5.=CELL ("filename") returns the path, filename, and work sheet name of the workbook and worksheet=CELL (
17.1.6.=CELL ("format",D1) returns a number format=CELL (
17.1.7.=CELL ("parentheses", D2) returns 1 if a cell is formatted to have either positive values or all values displayed with parentheses.=CELL (
17.1.8.=CELL("prefix", A1) returns the type of text alignment in a cell.=CELL(
17.1.9.=CELL ("protect",A1) returns 1 if a protection is set to locked=CELL (
17.1.10.=CELL("row", B6) returns the row number of the first cell in the range=CELL(
17.1.11.=CELL("row", Summary) returns the row number of the first cell in the name=CELL(
17.1.12.=CELL("type", A1) returns the type of information in a cell.=CELL(
17.1.13.=CELL("width") returns the width of the last changed cell, rounded to an integer.=CELL(
17.1.14.=CELL("width", A1) returns the width of A1=CELL(
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.