Forum Discussion
Help with conditional formatting
- Jun 27, 2019
For cell A1, go to Conditional Formatting, new rule, format only cells that contain, Format only cells with: Cell Value, less than, =B1, and apply your format. Use the format painter to copy this format down through all of your cells in Column A.
For cell B1, go to Conditional Formatting, new rule, format only cells that contain, Format only cells with: Cell Value, less than, =A1, and apply your format. Use the format painter to copy this format down through all of your cells in Column B.
Hi PReagan
Thanks for the response but that didn't work. It seems to copy over just what is in that particular cell rather than the formula. I just want to be able to get excel to look at the value in the cell and see if it is less than the value in another cell and if so to turn the cells fill red. But I then need it for the rest of the columns. For example Column A1 has a number 3 in and I want to be able to turn this cell red if the number is 2 in Column B1 (less than Column A1). Then apply this to the rest of Column A. I hope that makes sense.
For cell A1, go to Conditional Formatting, new rule, format only cells that contain, Format only cells with: Cell Value, less than, =B1, and apply your format. Use the format painter to copy this format down through all of your cells in Column A.
For cell B1, go to Conditional Formatting, new rule, format only cells that contain, Format only cells with: Cell Value, less than, =A1, and apply your format. Use the format painter to copy this format down through all of your cells in Column B.
- JJS007Jul 08, 2019Copper Contributor
PReagan - can you elaborate on this string with this other person. I need the conditional formatting you provided Less than but ALSO Greater than? how do I include both?
I am trying to show a tolerance - if great than 25% variance of # red, or if less than 25% variance of # a green indicator?
thoughts?
- PeterBartholomew1Jul 09, 2019Silver Contributor
To apply multiple conditional formats, go into the 'Conditional Formatting Names Manager' and insert a 'New Rule...'. The obvious choices are 'Format all cells based upon their values' followed by 'Icon set', or 'Format only cells that contain'. The thresholds may reference worksheet cells and, in the case of icons, you can conceal the values if you so choose.
If you only require formats above or below a single threshold value, do not forget that you can apply an ordinary cell formatting as default to the cells that have not triggered the conditional format.