+ Reply to Thread
Results 1 to 3 of 3

Thread: Multiple IF statement for conditional formating

  1. #1
    Registered User
    Join Date
    09-23-2011
    Location
    Indiana,united states
    MS-Off Ver
    Excel 2007
    Posts
    8

    Multiple IF statement for conditional formating

    I want to add a conditional format to a cell if 2 criteria are met in 2 other cells. For example I want cell B3 to highlight yellow if cell D3 isn't blank and cell G3 doesn't contain an "x"
    Last edited by lgibson109; 10-06-2011 at 11:32 AM. Reason: Solved

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Multiple IF statement for conditional formating

    By contain, do you mean isn't equal to "x" or doesn't contain the letter "x" amongst other characters?

    If the former, try:

    =AND(D3<>"",G3<>"x")

    else try

    =AND(D3<>"",ISNA(SEARCH("x",G3))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    09-23-2011
    Location
    Indiana,united states
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Multiple IF statement for conditional formating

    Thta did it, as always great advice. And I did mean the letter x.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0