+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting if cell contains, then format column

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55

    Conditional formatting if cell contains, then format column

    So I’m having a moment. I know I can do this but I can’t figure it out. So with the attachment, I want to set up conditional formatting based of the contents of A1:H1

    If a cell in A1:H1 contains the word MAND, then that respective column would be highlighted yellow. So since A1 has MAND. Then A3:A12 would be highlighted yellow.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional formatting if cell contains, then format column

    Hello Kevrhof, try this,

    Select the range A3:AH12 and apply this formula in conditional formatting

    =A$1="Mand"

    Apply required format

    Note the $, that's required

    Now any column with "Mand" at the top will be formatted
    Audere est facere

  3. #3
    Registered User
    Join Date
    12-14-2013
    Location
    US
    MS-Off Ver
    Excel 2011
    Posts
    55
    Quote Originally Posted by daddylonglegs View Post
    Hello Kevrhof, try this,

    Select the range A3:AH12 and apply this formula in conditional formatting

    =A$1="Mand"

    Apply required format

    Note the $, that's required

    Now any column with "Mand" at the top will be formatted
    Ah brain fart I was doing it backwards. Make it a little more complicated, how can I do it and only highlight cells that contain TNG, if in that column one cell didn’t have TNG but MAND was at the top

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional formatting if cell contains, then format column

    If you still want the "Mand" condition to apply....but only when the cell itself contains "TNG" then just change formula to this

    =AND(A$1="Mand",A3="TNG")

    Note: these solutions aren't case-sensitive so the above would also work for tng and mand - you can make it case-sensitive if you really need to......

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional Formatting - copy format of a cell
    By Buzz1126 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2017, 01:48 PM
  2. Replies: 2
    Last Post: 12-05-2014, 07:15 AM
  3. Cannot Format Cell with Conditional Formatting
    By lowprofile in forum Excel General
    Replies: 3
    Last Post: 06-03-2014, 02:36 PM
  4. Replies: 5
    Last Post: 05-25-2014, 12:12 AM
  5. Conditional Formatting - Format row based on cell value in specific column
    By Kite3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2013, 12:23 AM
  6. [SOLVED] Conditional Formatting - If Cell A1=x format row 1
    By jjcgirl in forum Excel General
    Replies: 4
    Last Post: 03-27-2013, 07:46 PM
  7. Replies: 5
    Last Post: 05-03-2012, 06:06 PM

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