+ Reply to Thread
Results 1 to 4 of 4

Nested If's/VLOOKUP/ISNA

  1. #1
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Nested If's/VLOOKUP/ISNA

    The attached sample replicates an if statement that I am using which is:

    Please Login or Register  to view this content.
    Im having two issues:

    1. On the table array that I reference I inserted what would be a new line of data but I intentionally left the next two columns blank. I do this because sometimes I take notes on the sheet and forget to go back and fill in the necessary columns.

    Since both both B4 & C4 are true the lookup returns "O" because the fields are blank in the table.

    How do I code this so that if everything is true but the data in table array is blank, the result will be "DATA?"

    2. If i enter a value that is not in the table, like Z, i get #NA. I cant figure out where to put the ISNA to fix this.
    Attached Files Attached Files

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Nested If's/VLOOKUP/ISNA

    If you are retrieving text with the VLOOKUPS() you could simply format the cells containing those formulas with this custom format: ;;"DATA"

    As for the ISNA() you could use IFERROR() if you are using Excel 2007 as your profile shows.

    =IFERROR(your current formula,alternative)

    http://www.excelfunctions.net/Excel-Iferror.html

  3. #3
    Forum Contributor dagindi's Avatar
    Join Date
    06-02-2008
    Location
    New York, NY
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    295

    Re: Nested If's/VLOOKUP/ISNA

    I tried using ISERROR and its telling me to many arguments:
    Please Login or Register  to view this content.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Nested If's/VLOOKUP/ISNA

    Are you attempting IF(ISERROR()) because you are not using Excel 2007???
    Or did you misread what I posted earlier???

    If the latter - I suggested IFERROR(), not ISERROR, so try:

    Please Login or Register  to view this content.

    replace the "XXX" with whatever result you want in place of #N/A.

+ 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