+ Reply to Thread
Results 1 to 4 of 4

Highlight a range of cells if a single cell contains specific text

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Bishop, CA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Highlight a range of cells if a single cell contains specific text

    Hello All,

    I am looking for a way to highlight a range of cells based on the value in a single cell.
    Example if cell A1 contains the "DUMP", then to highlight the range A1:F10.
    It is similar to what you can do in the conditional formatting, but I could only figure out how to highlight cells based on the text that in each cell. (I couldn't get the whole range to highlight (A1:F10), only cell A1 because it was the only cell that contained "DUMP".
    Is there a way to use condtional formatting to highlight the whole range, or am I stuck with single cell highlighting? (I am using Miscrosoft Excel 2010)

    Thanks For You Time
    Zach

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Highlight a range of cells if a single cell contains specific text

    =($D$3="DUMP")

    Put this in under "Use a formula to determine which cells to format".
    Attached Images Attached Images
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    Bishop, CA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Highlight a range of cells if a single cell contains specific text

    Thanks Jacc,

    this works if the word is just "DUMP" is there a way to modify the formula to see if the cell contains the word "DUMP"?
    Example: Cell D3 contains the text "Take to the Dump"? (I tried: =($D$3="*DUMP*") I don't know if the "*" wildcard needs to be moved for this to work?
    Sorry I didn't mention that the cell would contain more text than a single word.

  4. #4
    Registered User
    Join Date
    11-17-2011
    Location
    Bishop, CA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Highlight a range of cells if a single cell contains specific text

    Hi All,

    I figured it out by using the formula: =SEARCH("DUMP",$D$3)>0 instead of a variation using the wildcards like the one in my previous post.
    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1