Understand CELL function a complete reference in Excel with example

Understand CELL function a complete reference in Excel with example

Cell

Is a Excel inbuilt function, works based on predefined constants passed as string into it and returns value according it supplied constants. In this article we will see mostly constants and their use in excel with example using Cell function.

Syntax

=CELL(info_type,[reference])

Parameters

  1. info_type: refers to an inbuilt constant provided by cell function as listed below:
    • address: returns address of given reference
    • col: returns column number of given reference
    • contents: returns contents of given reference
    • filename: returns file name of given reference
    • format: returns format of given reference as given below
      • G: returns if reference format set to “General“, “Long Date“, “Time“, “Text” or “Fraction
      • F2: returns if reference format set to “Number
      • C2: returns if reference format set to “Currency” or “Accounting
      • D4: returns if reference format set to “Short Date
      • P2: returns if reference format set to “Percentage
      • S2: returns if reference format set to “Scientific
    • prefix: returns prefix character from given reference
    • protect: returns 0 if referenced cell is unprotected else 1
    • row: returns row number of given reference
    • type: a value type as listed below:
      • b: returns “b” if reference is blank
      • v: return “v” if reference contains date or numbers
      • l: returns “l” if reference contains string or text
    • width: returns width of reference cell
  2. reference: refers to a range, first cell of supplied range would be referred to evaluate the constant.

Address example

Output

col example

Output

contents example

Output

filename example

Output

format example

Output

prefix example

Output

protect example

Formula

Output

protect example

Formula

Output

row example

Output

type example

Output

width example

Output

Next >> Mid function in Excel with example

Leave a Reply

Your email address will not be published.