+ Reply to Thread
Results 1 to 4 of 4

IF(AND(ISNUMBER(SEARCH())) Function

  1. #1
    Registered User
    Join Date
    05-20-2015
    Location
    United States
    MS-Off Ver
    Microsoft Office 2013
    Posts
    36

    Question IF(AND(ISNUMBER(SEARCH())) Function

    Hello Everyone,

    I have been working on a macro for a report we run at work, and am currently running into an issue. The function below is supposed to be printing a "status" in column P, but it is not printing accurately. I have also posted screenshots to help illustrate the problem.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In the picture below, please note that in cell O2 and O6, the amounts are $810 and $1,080, which are included in the formula, and should display "Increase w/Fee" in column P, but they are not. What am I doing wrong? Thank you in advance.

    Excel 6.JPG
    Last edited by joshuarobbins; 11-30-2015 at 12:57 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: IF(AND(ISNUMBER(SEARCH())) Function

    I suspect this may be the cause

    AND(O2=810,O2=1050,O2=1080,

    If O2 is 810 how can be 1050 as well and even 1080 ?
    That should probably be an OR not and AND
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

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

    Re: IF(AND(ISNUMBER(SEARCH())) Function

    Hard to critique from an image but

    AND(O2=810| O2=1050| O2=1080| (N2<=0)))| should be an OR. O2 can't be 810 and 1050 at the same time. Not sure how N2 fits in. Might need

    AND(ISNUMBER(SEARCH("VA"| J2)| (N2<=0)) |OR(O2=810| O2=1050| O2=1080))
    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

  4. #4
    Registered User
    Join Date
    05-20-2015
    Location
    United States
    MS-Off Ver
    Microsoft Office 2013
    Posts
    36

    Re: IF(AND(ISNUMBER(SEARCH())) Function

    Alright, you were both right about the AND being switched to OR. I also rearranged N2 in the function to be right after J2, which also did the trick. Thank you guys very much for the quick reply and the help. This one is solved.

+ 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] Countifs & Search (ISNumber) Function together
    By MeritaH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2014, 11:01 PM
  2. Combine IF THEN Function with ISNUMBER SEARCH?
    By alexa_raye in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2014, 11:44 AM
  3. [SOLVED] IF(ISNUMBER(SEARCH function
    By NickT83 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2014, 10:18 AM
  4. Help with multiple If(Isnumber(Search( function
    By khk410 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2013, 09:07 AM
  5. [SOLVED] how to have multiple ISNUMBER search function in SUMPRODUCT
    By melvyndb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2012, 09:34 PM
  6. ISNUMBER(SEARCH Function
    By somesoldiers in forum Excel General
    Replies: 2
    Last Post: 07-14-2009, 10:49 AM
  7. SUMPRODUCT((ISNUMBER(SEARCH() function
    By redneck joe in forum Excel General
    Replies: 13
    Last Post: 12-08-2006, 06:19 PM

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.6.0 RC 1