Changing a row's color depending on the value ( TEXT ) of a cell

In a cell, I have the choice of YES and NO for values. I would like to know how to change the background color for other cells in the same row depending on the value of the first without changing the values in the other cells.

How can I do this?

2

1 Answer

No code required.

  • Select cells C15 to N15
  • click Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format
  • enter this formula

=$M15="yes"

  • select a format, for example green fill and close all dialogs
  • keep the cells selected and enter another rule with the formula

=$M15="no"

  • select a format, for example a red fill and close all dialogs.

You can now copy the cells and use Paste special > Formats to copy the conditional formatting to other rows.

enter image description here

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like