+ Reply to Thread
Results 1 to 5 of 5

Conditional Highlight a range of cells based on one cells value, with a relative reference

  1. #1
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Conditional Highlight a range of cells based on one cells value, with a relative reference

    Good morning.

    I would love some assistance with what i thought would be a fairly simple task, but alas, im not getting it

    I have attached a sample sheet. What I am looking to do is conditionally format cells in columns B:E if the cell in column B contains the text "Shift".

    I have tried the following as the formula in Conditional formatting, but with no luck :
    Please Login or Register  to view this content.
    The link below is almost what i am after ... but did not work for me.

    http://www.excelforum.com/excel-gene...-one-cell.html

    I will have a number of Groups of columns across the page, the example only shows 2 sets.

    The example sheet has some cells formatted manually to show how i want them to appear, but with conditional formatting as the data will change week to week, with the "Shift" headings being in different rows.

    Thanks in advance

    Darren
    Attached Files Attached Files

  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 Highlight a range of cells based on one cells value, with a relative refer

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tabe, styles, select CF
    3. select new rule, select use formula
    4. enter =ISNUMBER(SEARCH("shift",$B2,1))
    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
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Conditional Highlight a range of cells based on one cells value, with a relative refer

    Hi FDibbins

    Thanks for the prompt reply

    When I copy this down it is highlighting all cells, not just those adjacent to the cells which have "Shift" in them ?

    Darren.

  4. #4
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Conditional Highlight a range of cells based on one cells value, with a relative refer

    My apologies ....... Chair to Keyboard interface failed !!!! lol

    Works a treat ... thank you !!!!

    (Insert Skulking off to bury head in the sand here)

    Darren

  5. #5
    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 Highlight a range of cells based on one cells value, with a relative refer

    lol happy to help, and thanks for the rep.

    (love the "chair to k/b interface part)

+ 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