I have sets of values in rows in Excel First row contains weights of how much each value in each column contributes to weighted total. Now, I want to mark in each following row the value that contributed to the weighted total the most, by changing its background. I played with conditional formatting, but my Excel skills are modest, to say the least. So, how do I do that?
Share
Assuming the weights are in A1:C1 and the values are in A2:C2, enter =MAX($A$1:$C$1*$A2:$C2)/A$1 as the ‘equals’ condition for A2
alt text http://www.vulomedia.com/images/12339ExcelConditionalFormatting.jpg
In words this formula is (maximum of (values x weights)) / this column’s weight.
Experienced Excel users may notice that if this formula was entered in a worksheet cell it would have to be entered as an array formula to give the correct value. The trick here is that when formulae are used in conditional formats they are always treated as array formulae; no Ctrl-Shift-Enter required.