+ Reply to Thread
Results 1 to 3 of 3

Conditional format if a cell contains part text of another cell

  1. #1
    Registered User
    Join Date
    01-12-2019
    Location
    Henley
    MS-Off Ver
    Office 365
    Posts
    2

    Conditional format if a cell contains part text of another cell

    Hello All,

    I have a quick query i am hoping excel can automate

    I have two lists of data in column A and column B.

    If column B (manually entered) contains the first part of column A i would like the cell to format red.

    In the attached example if column A says Maths2 and column B says Maths i would like column B to turn red. This would also be the case for English and English2 etc

    Is this possible?

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Conditional format if a cell contains part text of another cell

    Select B2:B6

    Home > Conditional formatting > New rule > use a formula

    if only check in the same row
    =SEARCH(B2,A2)

    if check all row in column A

    =COUNT(SEARCH(B2,A2:A6))

    > fill color
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-12-2019
    Location
    Henley
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Conditional format if a cell contains part text of another cell

    Perfect. Many thanks

+ 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: 8
    Last Post: 09-28-2018, 02:37 PM
  2. Replies: 1
    Last Post: 04-11-2013, 01:49 PM
  3. Replies: 5
    Last Post: 01-14-2013, 01:26 PM
  4. Conditional format of cell to show value of text cell?
    By JapanDave in forum Excel General
    Replies: 2
    Last Post: 05-19-2010, 11:11 PM
  5. Conditional format on part of a cell
    By Hein in forum Excel General
    Replies: 2
    Last Post: 04-02-2009, 04:44 AM
  6. Format Part of Text Cell using VBA
    By Vlad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2006, 09:45 AM
  7. [SOLVED] format part of text in a cell?
    By Yawrood in forum Excel General
    Replies: 8
    Last Post: 06-01-2006, 07:58 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