Conditional formatting using cell styles in Excel 2007?

7

Excel 2007 has added support for cell styles, which I find very useful. I love it when I can change formatting in one place and the change propagates throughout the spreadsheet.

I also love conditional formatting.

Can the two be combined? Can I conditionally apply a cell style?

RomanSt

Posted 2010-03-15T10:55:40.743

Reputation: 7 830

Answers

3

You can't conditionally apply a style, but you can conditionally remove it. If you format the cell with the style that you ultimately want, then depending on the situation, you can then clear that style with the conditional formatting.

guitarthrower

Posted 2010-03-15T10:55:40.743

Reputation: 933

1Good idea, might work in some cases. This time I was hoping to apply different styles depending on a formula though. – RomanSt – 2010-03-17T12:42:26.453

You could probably do it with VBA, but it would be messy and slow. – guitarthrower – 2010-03-17T15:53:28.843

Accepted for "You can't conditionally apply a style". – RomanSt – 2011-01-07T12:20:11.397