Background Color based on difference with cell
问题 I am trying to create a VBA code which allows me to allocate background colors to a cell based on its difference with the neigbouring cell to the left. Allow me to explain: http://imgur.com/UUfaFRA When you look at the image above you can see: C3 is red because it's value is higher than B3 . C4 has no color as it's value is equal to B4 C5 is green because it's value is lower than B5 I tried to put this into a VBA code but don't succeed: Sheets("x").Range("C3").FormulaR1C1 = "=IF(RC>RC[-1]