Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel =CELL("color",[Cell]) Function

I guess I'm a little confused by the CELL function within Excel. I'm using Excel 2010 and decided to try to figure out the CELL function as it pertains to the cells color. The documentation reads: The value 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero). However, the image below is what has me confused.

Cell Formatting

The content in the C column are the formulas, and the content in the D column are the results from the formulas. I have tried so many different formatting options (including Conditional Formatting) on this simple test, but cannot get the value of =CELL("color",B1) to be anything but 0.

Any information on this would be much appreciated.

like image 991
SalvadorVayshun Avatar asked Aug 25 '26 01:08

SalvadorVayshun


1 Answers

Documentation says:

The value 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero).

An example of a format that would generate a "1": Right click a cell -> Format Cells -> Select Number -> Choose the second format where the negative number appears in red.

like image 158
jeff carey Avatar answered Aug 28 '26 03:08

jeff carey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!