View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Is there a logical test for a cell's format instead of contents

Bruce

Only by using VBA.........User Defined Function

See Chip Pearson's site for info and code.

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


Gord Dibben Excel MVP

On Wed, 16 Nov 2005 16:18:06 -0800, "Bruce"
wrote:

Microsoft Excel 2003
I have a list of names for a roster in a single column covering several
months. The information is imported from another source (MS Access) which is
maintained by someone else and the only distinction between status (i.e.
rostered, available, unavailable, absent) is the cell format (i.e. colour).
I want to use an IF_statement to identify the different statuses so that I
can produce a summary report.
e.g. I could enter this formula (if there a logical test for a cell's format
instead of contents) in cell B5:
IF(A5 cell colour is blue,"Rostered",IF(A5 cell colour is
green,"Available",IF(A5cell colour is grey,"unavailable","absent")))
I could then use a lookup function to create my summary report.