+ Reply to Thread
Results 1 to 6 of 6

IF Not function

  1. #1
    Registered User
    Join Date
    03-09-2017
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    15

    IF Not function

    Hi again. Im having trouble with an IF NOT formula and was wondering if someone could help me

    What Im trying to accomplish is IF AG is LESS THAN 50, AJ is LESS THAN 7 and D2 DOES NOT contain the word Speakers in it, then return "Free Shipping". This is what i have right now, but it doesnt seem to be working correctly.

    IF(NOT(AND(AG2<50,AJ2<7,ISNUMBER(SEARCH("Speakers",D2)))),"Free Shipping", ","")

    Thanks in advance

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: IF Not function

    Try...
    =IF(AND(AG2<50,AJ2<7,ISERROR(SEARCH("Speakers",D2))),"Free Shipping","")

  3. #3
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: IF Not function

    Hi
    The conditions AG2<50 and AG2<7 will return true only if AG2<7 because AG2 > 7 will return false for group and false for the whole condition.

    If you want condition between 7 & 50 try >7 & <50 conditions
    Thhanks
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: IF Not function

    @mahju

    You might want to read those conditions in the formula a little closer.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,913

    Re: IF Not function

    The conditions AG2<50 and AG2<7 ...
    It's AG2 and AJ2 from OP

  6. #6
    Registered User
    Join Date
    03-09-2017
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    15

    Re: IF Not function

    Thank you everyone. I got it to work!!!

+ 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. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  2. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  3. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  4. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  5. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  6. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  7. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 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