Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old November 1st 04, 04:35 PM
ExcelMonkey
 
Posts: n/a
Default Function to return colour of formatted cell


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

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

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

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

Thanks.


--
ExcelMonkey
------------------------------------------------------------------------
ExcelMonkey's Profile: http://www.excelforum.com/member.php...fo&userid=5221
View this thread: http://www.excelforum.com/showthread...hreadid=274186


  #2   Report Post  
Old November 1st 04, 05:05 PM
Frank Stone
 
Posts: n/a
Default

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
-----Original Message-----

I am building a colour key for a a model to note which

cells have bee
imputted by which people. As a result I want to set up

say 6 colours
in a legend and then run a macro to count the existence

of each colour
in the model. A coutif based on colour if you will.

Is there an information function in Excel which will

return the colour
format of a cell. For example:

Info(A1) = 2 [2 meaning a particular colour format which

is evident in
cell A1]

Or should I just go the VBA route with a custom function

since I will
be building a routine to count the colours anyway?

Thanks.


--
ExcelMonkey
----------------------------------------------------------

--------------
ExcelMonkey's Profile:

http://www.excelforum.com/member.php?
action=getinfo&userid=5221
View this thread:

http://www.excelforum.com/showthread...hreadid=274186

.

  #3   Report Post  
Old November 1st 04, 05:14 PM
Ron de Bruin
 
Posts: n/a
Default

Hi ExcelMonkey

Look on this two sites
http://www.cpearson.com/excel/colors.htm

http://www.xldynamic.com/source/xld.ColourCounter.html

--
Regards Ron de Bruin
http://www.rondebruin.nl


"ExcelMonkey" wrote in message ...

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

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

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

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

Thanks.


--
ExcelMonkey
------------------------------------------------------------------------
ExcelMonkey's Profile: http://www.excelforum.com/member.php...fo&userid=5221
View this thread: http://www.excelforum.com/showthread...hreadid=274186



  #4   Report Post  
Old November 1st 04, 06:54 PM
Gord Dibben
 
Posts: n/a
Default

See Chip Pearson's site for working with colors code.

http://www.cpearson.com/excel/colors.htm

Gord Dibben Excel MVP

On Mon, 1 Nov 2004 09:35:22 -0600, ExcelMonkey
wrote:


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

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

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

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

Thanks.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can excel colour a cell when it has a specified character Kev Excel Discussion (Misc queries) 4 January 8th 05 06:47 PM
#VALUE in cell but pop up function box show right number Ted Dalton Excel Discussion (Misc queries) 1 December 14th 04 04:15 PM
Changing Cell Fill Colour Nick Excel Discussion (Misc queries) 4 December 6th 04 11:05 PM
copy a cell value not its function KC Mao Excel Discussion (Misc queries) 2 December 4th 04 05:30 AM
continuous cell function milljaso Excel Worksheet Functions 1 October 27th 04 10:21 PM


All times are GMT +1. The time now is 12:37 AM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017