+ Reply to Thread
Results 1 to 4 of 4

Formatting a single cell if specific text appears anywhere in a separate cell range

  1. #1
    Registered User
    Join Date
    05-12-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    14

    Formatting a single cell if specific text appears anywhere in a separate cell range

    This seems so simple but I've been wrestling with it all morning, to no avail.

    Simple excel table of equipment, with a column for item status, each equipment item having a status of PASS or FAIL. All I want is that the cell at the head of the column (E1) changes to red, if anywhere down that column E there is a FAIL. Simply to flag up if there is a problem that needs dealing with.

    Workbook attached. I know how to format the cell itself, and the row, no problem, but I simply cannot work out how to format a single cell based on something appearing somewhere within a range elsewhere in the table.

    Your help very much appreciated!!

    Many thanks

    Bill
    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
    53,051

    Re: Formatting a single cell if specific text appears anywhere in a separate cell range

    It appears you are already familiar with CF?
    Use this as a New Rule/Use Formula, in E1
    =COUNTIF($E$2:$E$7,"fail")
    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
    05-12-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Formatting a single cell if specific text appears anywhere in a separate cell range

    Perfect, that's nailed it. Thank you so much, super grateful!

  4. #4
    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
    53,051

    Re: Formatting a single cell if specific text appears anywhere in a separate cell range

    Happy to help

+ 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. Replies: 3
    Last Post: 02-19-2020, 03:34 AM
  2. Replies: 6
    Last Post: 11-19-2018, 09:46 AM
  3. Separate text and number from a single cell
    By kalyan2979 in forum Excel General
    Replies: 3
    Last Post: 06-28-2018, 11:54 AM
  4. Trying to separate vertical text from a single cell – Mk II
    By Wendy Collins in forum Excel General
    Replies: 0
    Last Post: 01-30-2013, 09:46 AM
  5. [SOLVED] Highlight a range of cells if a single cell contains specific text
    By ZHertz in forum Excel General
    Replies: 3
    Last Post: 10-19-2012, 02:54 PM
  6. Replies: 1
    Last Post: 06-22-2012, 02:18 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