0

I am trying to conditionally format one column base on rank specified in another column in excel 2012.

consider the following example:

col_1  col_2

Alice   2

Sam     1

Tim     4

Alex    3

the highlighting color of column one should be determined by the value/rank in column 2, say the min in column 2 correspond to white and the max correspond to red, I want the first column to have corresponding highlighting. Alice - pale pink; Sam - white; Tim - red; Alex - dark pink. I do have lots of columns, so I do not want to have to make separate rules for all possible value/rank in column 2. I know there is a way to "format all cell base on their values" in excel, I am looking for the counter part "format all cell base on other cells' values"

Cici
  • 1,407
  • 3
  • 13
  • 31

2 Answers2

1

A very rudimentary option: Capture Change or Calculate events for the Worksheet, and copy the part of the format of choice, from the range in column B to the range in column A.

For copying the format:

Excel: Make conditional formatting static

or

http://www.mrexcel.com/forum/excel-questions/284013-convert-conditional-formatting-into-standard-one.html

Community
  • 1
  • 1
0

Thanks to sancho.s for reminding me about this thread I opened. I think sancho.s's answer will work, but I did not end up using it. but it did inspired my own solution. My solution is probably not that applicable for everyone else, but maybe worth mentioning here.

I ended up using the activeX excel server in matlab to edit the formatting. The reason I chose this method is because I am more comfortable with matlab than vb.

Cici
  • 1,407
  • 3
  • 13
  • 31