Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I have a table that is five cells wide by twenty high with a sum function at the end (e.g. cel A20). I want to highlight the column that results in the highest SUM. How do I use conditional formatting with the formula condition IF A20=MAX(A20:E20) THEN Highlight A1:A20?

share|improve this question
up vote 5 down vote accepted

That works pretty much exactly as you noted:

  1. Highlight A1:E20
  2. Apply CF formula that is CUSTOM, this is a slight variation to your formula: =A$20=MAX($A$20:$E$20) enter image description here
  3. Format ... Yellow
  4. And the result is the MAX column will highlight enter image description here
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.