+ Reply to Thread
Results 1 to 10 of 10

IF(ISNA(IF(AND Statement

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    228

    IF(ISNA(IF(AND Statement

    Could someone please help me fix this formula so if #N/A shows up, it leaves the cell blank?

    =IF(AND($S$1:$S$10000>" ",VLOOKUP(S:S,'Contact Information'!B:L,11,FALSE)<>""),VLOOKUP(S:S,'Contact Information'!B:L,11,FALSE),"")

    Thank you!

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: IF(ISNA(IF(AND Statement

    Hi freybe06

    try it

    =if(ISNA(IF(AND($S$1:$S$10000>" ",VLOOKUP(S:S,'Contact Information'!B:L,11,FALSE)<>""),VLOOKUP(S:S,'Contact Information'!B:L,11,FALSE),"")=TRUE,"",IF(AND($S$1:$S$10000>" ",VLOOKUP(S:S,'Contact Information'!B:L,11,FALSE)<>""),VLOOKUP(S:S,'Contact Information'!B:L,11,FALSE),""))

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: IF(ISNA(IF(AND Statement

    Isn't this same thread?

    http://www.excelforum.com/excel-work...k-problem.html

  4. #4
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    228

    Re: IF(ISNA(IF(AND Statement

    zbor - that looks similar but that person was getting a #value error, not a #n/a.

    Azam - I'm getting an error in that stops me up to this point:

    =if(ISNA(IF(AND($S$1:$S$10000>" ",VLOOKUP(S:S,'Contact Information'!B:L,11,FALSE)<>""),VLOOKUP(S:S,'Contact Information'!B:L,11,FALSE),"")=TRUE,""

    When I insert a close perenthesis, I get a too many arguments error.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: IF(ISNA(IF(AND Statement

    try that solution 'cause it should work.. here is:

    =IF(ISERROR(1/VLOOKUP(S1,'Contact Information'!$B$1:$L$22,11,FALSE)),"",VLOOKUP(S1,'Contact Information'!$B$1:$L$22,11,FALSE))

  6. #6
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    228

    Re: IF(ISNA(IF(AND Statement

    It looks like this formula is working for numbers fields, but not for text fields.

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

    Re: IF(ISNA(IF(AND Statement

    How about?

    Please Login or Register  to view this content.
    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.

  8. #8
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    228

    Re: IF(ISNA(IF(AND Statement

    That works perfectly. Thanks again NBVC!

    Thanks Azam and zbor as well. I appreciate you all taking the time to help!

  9. #9
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    228

    Re: IF(ISNA(IF(AND Statement

    I may have spoken too soon... haha

    If S1 does contain something, then the VLOOKUP is blank, the cell shows up as "0" - is there a way to make it so the cell shows a blank if there is nothing for the VLOOKUP to return?

    Thanks!

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

    Re: IF(ISNA(IF(AND Statement

    The easiest way to avoid mega formulas... is to format the result cells as Number:Custom and enter 0;-0;;@

    this hides 0 results.

+ 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