+ Reply to Thread
Results 1 to 7 of 7

Help preventing N/A errors

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Help preventing N/A errors

    Hello,

    The following array formula works perfectly:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    however, after the last row where the condition takes place, it just gives N/A errors from then on.
    what can i do to the formula to give a blank cell instead of the N/A error? but everything else works the same.

    also, "no bingo" is never displayed anyway. a FALSE is there instead. was wondering why this is. is there any need of it being in the formula above?


    thank you.
    Last edited by tlacloche; 05-09-2014 at 12:44 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Help preventing N/A errors

    Just encapsulate the whole expression with IFERROR, with a default output of "".

    =IFERROR(IF(AND(ISNUMBER(MATCH(I2,{"Apple","Banana","Orange"},0)),MATCH("Happy",$I3:$I$240000,0)<MIN(IFERROR(MATCH({"Apple","Banana","Orange"},$I3:$I$240000,0),10^10))),IF(MATCH("Happy",$I3:$I$240000,0)>MIN(IFERROR(MATCH({"Expensive"},$AB3:$AB$240000,0),10^10)),"No Bingo","Yes Bingo")),"")
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Help preventing N/A errors

    add an IFERROR as follows

    =IFERROR(IF(AND(ISNUMBER(MATCH(I2,{"Apple","Banana","Orange"},0)),MATCH("Happy",$I3:$I$240000,0)<MIN(IFERROR(MATCH({"Apple","Banana","Orange"},$I3:$I$240000,0),10^10))),IF(MATCH("Happy",$I3:$I$240000,0)>MIN(IFERROR(MATCH({"Expensive"},$AB3:$AB$240000,0),10^10)),"No Bingo","Yes Bingo")),"")

    if you never see the No Bingo and getting a false - then the IF statement is missing an element and giving a FALSE

    i will decode as best i can and reply later
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Help preventing N/A errors

    thanks guys.

    As etaf just stated, can you please edit the formula so "No Bingo" is actually displayed instead of FALSE.

    thanks

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Help preventing N/A errors

    so in your TEST

    you are doing this for the TEST
    AND(ISNUMBER(MATCH(I2,{"Apple","Banana","Orange"},0)) ,MATCH("Happy",$I3:$I$240000,0)<MIN(IFERROR(MATCH({"Apple","Banana","Orange"},$I3:$I$240000,0),10^10))),

    Then IF TRUE
    you are doing this
    IF(MATCH("Happy",$I3:$I$240000,0)>MIN(IFERROR(MATCH({"Expensive"},$AB3:$AB$240000,0),10^10)),"No Bingo","Yes Bingo"))

    SO you have to have a TRUE for the first condition
    and then a TRUE for the 2nd condition to get "No Bingo"

    TRUE for 1st condition
    FALSE for 2nd condition will give "yes Bingo"

    FALSE for 1st condition - you dont have anything
    So the IF produces a FALSE

    SO in order to do that - we need to know the conditions and the results

    otherwise
    you probably need
    =IFERROR(IF(AND(ISNUMBER(MATCH(I2,{"Apple","Banana","Orange"},0)),MATCH("Happy",$I3:$I$240000,0)<MIN(IFERROR(MATCH({"Apple","Banana","Orange"},$I3:$I$240000,0),10^10))),IF(MATCH("Happy",$I3:$I$240000,0)>MIN(IFERROR(MATCH({"Expensive"},$AB3:$AB$240000,0),10^10)),"No Bingo","Yes Bingo"),"no bingo"),"")
    Last edited by etaf; 05-09-2014 at 01:08 PM.

  6. #6
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: Help preventing N/A errors

    that last formula works perfectly. thank you etaf

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Help preventing N/A errors

    your welcome , thanks for the rep

+ 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. Preventing the display of divide by zero errors.
    By Determined in forum Excel General
    Replies: 6
    Last Post: 04-18-2007, 09:58 PM
  2. [SOLVED] Excel Throwing Circular Errors When No Errors Exist
    By MDW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2006, 09:20 AM
  3. Preventing Duplicates
    By Ed in forum Excel General
    Replies: 11
    Last Post: 05-31-2006, 11:00 PM
  4. Preventing errors
    By koit in forum Excel General
    Replies: 7
    Last Post: 02-21-2006, 07:20 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