- Select D2 (or D2:D9 or D2:<somewhere further down>)
- Choose Format ► Conditional Formatting
- Format cells if... Custom formula is...
=C2="yes" - Formatting style - choose a green Fill and click Done.
Add new rule then repeat from step 3 with `=C2="no" and a red Fill.

Hi! I was left in charge of creating a sheet for a schedule and there is a list of names in a column. I wanted to add conditional formatting where each cell in the schedule is checked and if the text in the cell is the same as a name and then changes color.
For example, at 7:30 on Wednesday if the cell contains Greg it turns green. I'm willing to add all the conditional formatting for each name but it's for some reason, all my formulas don't work or they only work for the first cell. I can share the sheet. Thanks! (edited: solved. Thanks to everyone who tried to help sheets-ignorant me. Especially to u/agirlhasnoname11248!!)
Conditional formatting, highlight row if cell contains substring - Google Docs Editors Community
Conditional formatting based on another cell in the row
Google Sheets Conditional Formatting based on Text and another cell - Web Applications Stack Exchange
Conditional Format(If cell contains this text or this, then input the following values - Google Docs Editors Community
- Select D2 (or D2:D9 or D2:<somewhere further down>)
- Choose Format ► Conditional Formatting
- Format cells if... Custom formula is...
=C2="yes" - Formatting style - choose a green Fill and click Done.
Add new rule then repeat from step 3 with `=C2="no" and a red Fill.

If the cell is to have a background of white for anything other than "Yes", then you only need one rule: =C2="Yes" That is, if the default background for the entire sheet is white.
You must add two separate rules to cell D2, one for each color. The formula must look like this:
=
2="Yes"
And for anything other than "Yes"
=
2<>"Yes"
I am a complete beginner so bear with me, hopefully this makes sense.
I have a book list, relevant columns are Column A (Title), Column B (Author), and Column F (Status). In Column F, I put a "F" if I have finished reading the book.
What I want to do, is make it so that Columns A and B have a specific background color, if Column F for that row has "F" written in it. So I can easily see which books are read and which aren't.
By googling randomly, I was able to come up with this solution that works for ONE row (in this example, it's row 2): Conditional Formatting, Custom Formula is =search("f",F2)
When I apply this to A2:B2, A2 and B2 are colored when F2 contains F.
What I can't figure out is how to apply this to all rows. I'm thinking there must be a way to change the F2 in my formula to something that means "whatever F cell coincides with this row" and then I could just apply that formula to all A and B cells.