+ Reply to Thread
Results 1 to 4 of 4

If statement using contains with an additional qualifier

  1. #1
    Registered User
    Join Date
    01-28-2016
    Location
    florida
    MS-Off Ver
    2010
    Posts
    20

    If statement using contains with an additional qualifier

    Hello,

    Trying to create a formula for the following

    Cells in column A will have first names and sometimes the word Baby
    Cells in column B will have 2 digit letters such as SL or HQ

    want to identify(True/False and/or 0,1 are fine) the rows where column B has SL but column A does not contain the word Baby.

    Thanks in advance.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: If statement using contains with an additional qualifier

    =AND(B1="SL", ISERROR(SEARCH("baby", A1)))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-28-2016
    Location
    florida
    MS-Off Ver
    2010
    Posts
    20

    Re: If statement using contains with an additional qualifier

    Thank you for the reply. It work initially until I realized I forgot to add that if B1=HL I would I also like to see where Baby was not added. I tried the following but of course it didn't work...

    =AND(b1="SL",b1="HL", ISERROR(SEARCH("baby",a1)))

    Fix for this?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: If statement using contains with an additional qualifier

    You're close

    =AND(OR(b1={"SL","HL"}), ISERROR(SEARCH("baby",a1)))

+ 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. [SOLVED] Additional IF Statement - Help!
    By mack_76 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2015, 07:06 AM
  2. [SOLVED] Invalid Qualifier to a Valid Qualifier (Application)
    By exceltabz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2014, 11:31 AM
  3. Replies: 1
    Last Post: 02-06-2014, 03:00 PM
  4. [SOLVED] Multiple IF statement with additional requirements
    By Clash in forum Excel General
    Replies: 3
    Last Post: 11-01-2012, 10:35 AM
  5. Adding additional criterial to statement
    By rhudgins in forum Excel General
    Replies: 2
    Last Post: 03-14-2011, 04:50 PM
  6. Adding additional IF statement
    By rhudgins in forum Excel General
    Replies: 1
    Last Post: 04-13-2010, 04:59 PM
  7. Replies: 1
    Last Post: 10-17-2008, 02:40 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