Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
    
Good idea, might work in some cases. This time I was hoping to apply different styles depending on a formula though. – romkyns Mar 17 '10 at 12:42
    
You could probably do it with VBA, but it would be messy and slow. – guitarthrower Mar 17 '10 at 15:53
    
Accepted for "You can't conditionally apply a style". – romkyns Jan 7 '11 at 12:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .