CELL(info_type, [reference])
=CELL("col", C10)
returns 3, which is the column number of C10.
=CELL("address",A1)
returns "$A$1", which is the address of A1 as text.
=CELL("filename",A1)
returns path + filename, which is the full path and workbook name for the worksheet.
=CELL("format",A1)
returns C2 if A1 contains 100 with the currency number format applied.
=CELL("format",A1)
returns "F0()" if A1 uses the custom number format (0).
The CELL function allows you to return information about a cell's formatting, location, or contents.