+ Reply to Thread
Results 1 to 3 of 3

conditional format based on adjacent cell's text

  1. #1
    Registered User
    Join Date
    06-30-2013
    Location
    US
    MS-Off Ver
    2010
    Posts
    6

    conditional format based on adjacent cell's text

    I've searched and tried the replies of several other posts, but they don't work. I need 4 cells to format gray with bold text(I know how to change this part) if the 2nd cell in the line of 4 cells contains a specific text, for example: B1, B2, B3, and B4 all need formatted if B2=maintenance, or administration, or one of several other options. I need this for a whole sheet for each row, but only those four cells per row. The only columns that will contain the text is column C and column H, if that helps. Everything I have tried turns the whole page formatted.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: conditional format based on adjacent cell's text

    Put all the terms you need to consider, in a small table somewhere, say J1:J10

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =match(B2,$J1:$J10,0)

    You may need to absolute B2 but I cant say for sure unless I see more data from you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-30-2013
    Location
    US
    MS-Off Ver
    2010
    Posts
    6

    Re: conditional format based on adjacent cell's text

    Ok. So I have a sheet that autofills off of another sheet that gives these four columns
    B-D the information so we can print it all out on one sheet. It continues on the second half of the page in columns G-J.
    If any cell in column C shows administration, maintenance, recreation, clinical, or school, then cells B,C,D,and E of that row all need to format. I have been manually moving things but as we add more staff, those position headers move to different cells and I can only figure out how to highlight based on cell=specific text and not the adjacent cells.
    SnipImage.JPG
    Last edited by doughigh; 03-15-2017 at 08:35 AM. Reason: unsure if attachment loaded. over explained in case it didn't

+ 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 Based on Adjacent Cell *Format*
    By MacroPolo in forum Excel General
    Replies: 1
    Last Post: 05-18-2016, 09:59 AM
  2. [SOLVED] Conditional Formatting Based on Text in Adjacent Cell
    By fearonc in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-19-2015, 06:15 PM
  3. Conditional formatting based on text in adjacent cell
    By lauralaura in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2014, 05:16 PM
  4. Replies: 1
    Last Post: 04-11-2013, 01:49 PM
  5. Macro that will clear contents of cell based on format of text in adjacent cell
    By judasdac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2012, 01:56 AM
  6. conditional formating based on text in adjacent cell
    By buckshot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2011, 07:44 AM
  7. Replies: 1
    Last Post: 04-26-2010, 04:53 AM

Tags for this Thread

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