0

So i'm doing some conditional formatting. I want a row of values to turn green when a cell has the string "paid" present in it.

So far I've been able to make the conditional formatting work by selecting my entire range of data for the "Applies To" field, and then removing the "$" from my formatting rule which is N2 = "paid".

So I have:

Applies to: $A$2:$N$106 and Rule: =N2 = "paid"

However, when i do this only the first column (A) in my selected range turns green, not the entire row like i was wanting.

If i leave the "$" in my rule then the entire row is formatted, but then the rule doesn't account for the changing value in the N column.

I've tried using the format painter and everything, but i can't find a solution.

Cheers

2
  • What are you trying to do? If a cell in column N is "paid", you want the row to fill green? Commented Feb 27, 2019 at 1:42
  • yes, if the last cell (column N) is "paid" then i want the entire row to go green. At present it is only making the first cell in the row go green Commented Feb 27, 2019 at 1:43

3 Answers 3

3

If you want the entire row grenn based on what is in column N then 'lock' column N as an absolute reference.

With A2:N106 selected,

 =$N2="paid"

Without the $ to lock column N, column A references =N2="paid" but column B references =O2="paid", column C references =P2="paid", etc.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! This solved it. I didn't realise it was counting across like that.
0

Highlight $A$2:$N$106 range then from conditional Formatting menu select "Conditional Formatting" => "Highlight Cells Rules" => "Equal To"

Place the following formula: =IF($N2="paid",A2,"Something That Doesn't Match")

In this case if any cell in column N has value "paid" each cell within that row would equal to it's value and satisfy conditional formatting rule.

I have tested - it works.

Comments

0

It can be done in two ways,

1st: You can give the cell reference like this

Conditional formatting using cell reference

2nd: You can type the string itself in the formula bar

conditional formatting using string

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.