+ Reply to Thread
Results 1 to 2 of 2

IF statement w/multiple conditions

  1. #1
    Registered User
    Join Date
    05-25-2004
    Location
    Cleveland, Ohio USA
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    23

    IF statement w/multiple conditions

    This should be easy, but not for me on a Monday...
    I need to a formula in cell C1 to test for multiple conditions.
    Here's what I have:
    Cell A1 and B1 start out blank.
    Cell A1 has a Data Validation List with over a hundred choices.
    Some of the choices in the Data Validation List for cell A1 begin with an "*" [=if(left(A1,1)="*"].
    If A1 is blank do nothing in cell C1 [ie: =if(A1="","")].
    If A1 is anything but blank and does not begin with a "*" and cell B1 is blank then cell C1 should equal a 1.

    Basically cell C1 should be a "1" if B1 is blank when cell A1 contains anything but a blank that does not begin with a "*".

    I also need a Conditional Formatting formula for cell B1 so that I can hightlight B1 if B1 is blank when cell A1 is not blank and A1 does not begin with a "*".

    Thanks for any help...

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try, In C1:

    =IF(A1="","",IF(AND(B1="",LEFT(A1)<>"*"),1,""))

    Conditional Format formula for B1..... Formula Is >> =$C$1=1
    Where there is a will there are many ways.

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

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

+ 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