By: Shamima Sultana

In reply to Selinay.

Hello Selinay,

The GET.CELL function retrieves specific information about a cell. In this case, 38 is the code for the background color index of the cell. The formula returns the color index of cell B5 in the ‘Get Cell’ sheet.

The “38” is a code used in the GET.CELL function to retrieve the color index of a cell. It identifies the background color.
If the you want to get different information, such as font color or cell format, you can replace “38” with the appropriate code.

Here is a list of some GET.CELL function codes:

38: Returns the background color of the cell.
24: Returns the font color.
63: Returns if the cell contains a formula (TRUE/FALSE).
17: Returns the number format of the cell.
50: Returns the width of the cell.
64: Returns if the cell is locked (TRUE/FALSE).

These codes help retrieve specific cell information.

GET.CELL is a legacy Excel function, which needs to be used within named ranges to work properly in modern versions of Excel.

Regards
ExcelDemy