Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Excel 2010: the "reverse" of conditional formatting (sort of)...

$
0
0

I have a collection of HTAs and VBScripts that heavily rely on Excel automation. 

One of the very heavily used items is .interior.colorindex where I set (or read) the color of a cell to convey information.

My question is, is there a way to use the cell color as a part of a cell formula?

For example, I'd like to count the number of "Lime" cells in column "C".

I tried: "=countif(C2:C129,interior.colorIndex=4)", and it didn't generate a formula error, but it didn't count the cells either.

Is there a way to do this without writing an external function?

DAS


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>