+ Reply to Thread
Results 1 to 6 of 6

Conditional format and Or & FIND

  1. #1
    Registered User
    Join Date
    07-11-2009
    Location
    London
    MS-Off Ver
    Excel 2000
    Posts
    12

    Conditional format and Or & FIND

    In column B I could have blank, text or text containing the word "track" or "Track". In column C I could have Blank, "yes" or "Yes" or "no" or "No"

    Only if B text contains "track" or "Track" and/or C contains "yes" or "Yes" I want to conditionally format B.

    This does not work:-

    =OR(FIND("track",B1,1),FIND("Track",B1,1),C1="yes",C1="Yes")

    Can anyone please advise?
    Last edited by athegn; 07-12-2009 at 06:11 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,535

    Re: Conditional format and Or & FIND

    FIND is Case Sensitive (A <> a) whereas SEARCH is not (A = a)

    Conditional Formula:

    =AND(ISNUMBER(SEARCH("track",B1)),ISNUMBER(SEARCH("yes",C1)))

  3. #3
    Registered User
    Join Date
    07-11-2009
    Location
    London
    MS-Off Ver
    Excel 2000
    Posts
    12

    Re: Conditional format and Or & FIND

    Thank you for your formula:_

    =AND(ISNUMBER(SEARCH("track",B1)),ISNUMBER(SEARCH("yes",C1))

    However the formula only works where there is "track" text in B and "yes" in C.

    It does not work where there is only "track" text in B or only "yes" in C.

    Any further advice please?

  4. #4
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    540

    Re: Conditional format and Or & FIND

    If you change DonkeyOte's formula to the following it should conditionally format the cells if either B1 contains 'track' or C1 contains 'yes' or they both contain the relevant text:

    Please Login or Register  to view this content.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  5. #5
    Registered User
    Join Date
    07-11-2009
    Location
    London
    MS-Off Ver
    Excel 2000
    Posts
    12

    Re: Conditional format and Or & FIND

    Thank you both for your help.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,136

    Re: Conditional format and Or & FIND

    Please make thread as [solved]
    Never use Merged Cells in Excel

+ 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