Function to return colour of formatted cell

E

ExcelMonkey

I am building a colour key for a a model to note which cells have be
imputted by which people. As a result I want to set up say 6 colour
in a legend and then run a macro to count the existence of each colou
in the model. A coutif based on colour if you will.

Is there an information function in Excel which will return the colou
format of a cell. For example:

Info(A1) = 2 [2 meaning a particular colour format which is evident i
cell A1]

Or should I just go the VBA route with a custom function since I wil
be building a routine to count the colours anyway?

Thanks
 
F

Frank Stone

hi,
I know of no function that will do this. VB Code is about
the only way i have found. if you want to put the counts
in a summary section, you will have to use a select case
for each color you use.(or an if then else chain)
other wise you can use a helper column to record the color
index value on each row then use the countif function on
the helper column.
Regards
Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top