title: Excel formula that prints cell color (ColorIndex or RGB)
body: <p>Is there, in Excel, a Formula that retrieve the ColorIndex (or RGB) of a cell?</p>
  
  <p>I found the follwing function:</p>
  
  <pre><code>CELL(info_type, the_cell)
  </code></pre>
  
  <p>documented <a href="http://office.microsoft.com/en-gb/excel-help/cell-function-HP010062392.aspx" rel="nofollow">here</a>, but it does not have any reference information for cell color.</p>
  
  <p>The is a <code>color</code> info, but it's useless for me.
  In fact, it is described as follows:</p>
  
  <blockquote>
    <p><code>"color"</code> The value 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero).</p>
  </blockquote>
  
  <p>Any idea?</p>
  
  <p>Also, I turned out that the VBA property that do this is <code>Cell.Interior.Color</code> but actually I'm not using Macros, but simple Excel formulas. Is there maybe a way to emulate VBA functions with a formula?</p>