I am looking to highlight rows where a cell in the row contains a specific combination of words. Here’s an example
A1=Yes
A2=Yellow
Row reads (from A4, B4, C4, etc.):
Row 4: "Yes" text text
Row 5: "Yes, Yellow" text text
Row 6: "No, Yellow" text text
Row 7: "Yes, Yellow" text text
Row 8: "No" text text
So in this example, I want to highlight rows which contain both “Yes” and “Yellow” in cell 1 of the selected rows. Maybe some sort of IF statement like: If$A4:$A8 contains what’s in A1:A2, then CF (whatever’s in the conditional formatting). So I want the formula to look at rows 4 through 8 and see if the text in column 1 matches to both A1 and A2 – in this case “Yes” and “Yellow” and if it does, then it highlights the row, if it doesn’t meet both criteria, then nothing happens. In this case, rows 5 and 7 would be highlighted.
Row 4: Yes text text
Row 5: Yes, Yellow text text (row bolded)
Row 6: No, Yellow text text
Row 7: Yes, Yellow text text (row bolded)
Row 8: No text text
Now I’ve worked out a formula to highlight these rows: =$A4:$A8=”Yes, Yellow”
However I need to find out how to connect it to the content in A1:A2.
Other questions:
How can I limit the cells within the row that are highlighted? Say instead of highlight Row 4, I just want to highlight A4:C4?
On the flip side, how can I use CF if a criteria isn’t matched or “does not contain” or “does not equal”?
So like in my above example, I want rows containing “Yes, Yellow” in the 1st column to be bolded, however rows not containing “Yes, Yellow” should be strikethrough.
Row 4: Yes text text (row strikethrough)
Row 5: Yes, Yellow text text (row bolded)
Row 6: No, Yellow text text (row strikethrough)
Row 7: Yes, Yellow text text (row bolded)
Row 8: No text text (row strikethrough)
!! Better yet, instead of using strikethrough to hide the rows that don’t contain “Yes, Yellow” in the 1st column.
Row 4: Yes, Yellow text text
Row 5: Yes, Yellow text text
I was able to work it out from knowing nothing to this point thanks to this posted: http://chandoo.org/forums/topic/conditional-formatting-color-whole-row-instead-of-cell. Hope someone can help me take it to the next level.
Many thanks!
A1=Yes
A2=Yellow
Row reads (from A4, B4, C4, etc.):
Row 4: "Yes" text text
Row 5: "Yes, Yellow" text text
Row 6: "No, Yellow" text text
Row 7: "Yes, Yellow" text text
Row 8: "No" text text
So in this example, I want to highlight rows which contain both “Yes” and “Yellow” in cell 1 of the selected rows. Maybe some sort of IF statement like: If$A4:$A8 contains what’s in A1:A2, then CF (whatever’s in the conditional formatting). So I want the formula to look at rows 4 through 8 and see if the text in column 1 matches to both A1 and A2 – in this case “Yes” and “Yellow” and if it does, then it highlights the row, if it doesn’t meet both criteria, then nothing happens. In this case, rows 5 and 7 would be highlighted.
Row 4: Yes text text
Row 5: Yes, Yellow text text (row bolded)
Row 6: No, Yellow text text
Row 7: Yes, Yellow text text (row bolded)
Row 8: No text text
Now I’ve worked out a formula to highlight these rows: =$A4:$A8=”Yes, Yellow”
However I need to find out how to connect it to the content in A1:A2.
Other questions:
How can I limit the cells within the row that are highlighted? Say instead of highlight Row 4, I just want to highlight A4:C4?
On the flip side, how can I use CF if a criteria isn’t matched or “does not contain” or “does not equal”?
So like in my above example, I want rows containing “Yes, Yellow” in the 1st column to be bolded, however rows not containing “Yes, Yellow” should be strikethrough.
Row 4: Yes text text (row strikethrough)
Row 5: Yes, Yellow text text (row bolded)
Row 6: No, Yellow text text (row strikethrough)
Row 7: Yes, Yellow text text (row bolded)
Row 8: No text text (row strikethrough)
!! Better yet, instead of using strikethrough to hide the rows that don’t contain “Yes, Yellow” in the 1st column.
Row 4: Yes, Yellow text text
Row 5: Yes, Yellow text text
I was able to work it out from knowing nothing to this point thanks to this posted: http://chandoo.org/forums/topic/conditional-formatting-color-whole-row-instead-of-cell. Hope someone can help me take it to the next level.
Many thanks!