Condition based on format?

  • Thread starter Thread starter msherman83
  • Start date Start date
M

msherman83

The cells with the expenses I want to exclude are formatted in
different color. Is there any way to write a formula or macro so i
excludes based on the color of a cell?

Thanks
 
You can use a userdefined function to return the value of the color (in a helper
cell??) and then use that in your other formulas:

Chip Pearson has some sample code at:
http://www.cpearson.com/excel/colors.htm

(if the color is set via Format|conditional formatting, this won't work)
 
Back
Top