How To Highlight Row If Cell Contains Text/Value/Blank In Excel

Anonymous
2017-06-24T19:34:12+00:00

Hi 

Referring to column H, I have created a number of rules to recognise a word in column H (e.g. nothing), and then colour the whole row (e.g. blue) if that word is present (see below).  This has worked well for six different terms (e.g. "Nothing", "Live", "Keep an Eye On").  See below:

However, no matter how hard I try, I cannot get the same formula to work for a seventh term, "closed profit".  I am trying to have the row coloured green when "closed profit" is present, but it always ends up white as above. Here is a screenshot of the relevant rules:

As you can see from above, the formula is exactly the same for all seven terms, but it will not recognise "closed profit" and colour the row green.

Any help will be much appreciated.

Thanks.

Michael

However,

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2017-06-24T20:20:35+00:00

    Try setting the "Applies to" range for all of the rules to the entire range you want to format, e.g. to $H$2:$Z$1000, or if you want to format entire rows, $2:$1000 for example. It is important that the range starts with the same row that you use in your formula.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-06-24T21:23:34+00:00

    Thanks Hans.  I'll give that a go.  Actually, I just removed "closed" and put "loss" and "profit" instead of "closed loss" and "closed profit" and it works fine.  Seems like there was a problem differentiating between two terms that began with the same word, or perhaps I was doing something else wrong.  In any case, thanks for your reply.

    0 comments No comments
  2. Anonymous
    2017-06-26T07:49:42+00:00

    Hi Michael,

    It works from my side when using Hans' suggestion, let us know if it works on your end.

    Regards,

    Joanne

    0 comments No comments
  3. Anonymous
    2017-06-26T10:43:48+00:00

    Hi Joanne

    Yes, have it sorted now. Thanks for the message.

    Michael

    0 comments No comments