Consulting

Results 1 to 3 of 3

Thread: Highlight Cell According to List and Criteria

  1. #1

    Highlight Cell According to List and Criteria

    I have two requests that are very similar.

    Request 1

    Please see the attached jpeg

    I have a list of Strings in B1:B7
    I want the macro to look through column C for any matching strings and highlight the corresponding rows.
    The list of strings to find can expand in the future, and the conditional formatting should be case sensitive

    Request 2

    In cell C1 I write a string or value I am searching for
    The macro looks through column A for string with the value in C1 and highlights those rows.

    Thanks.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    1) Conditional formatting with a formula of

    =SUMPRODUCT(--(EXACT($B$1:$B$7=C9)))

    2) Conditional formatting with a formula of

    =ISNUMBER(FIND($D$1,A1))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    thanks XLD you always answer my questions!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •