+ Reply to Thread
Results 1 to 3 of 3

Iferror vlookup

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    Manchester, England
    MS-Off Ver
    MS 365
    Posts
    57

    Iferror vlookup

    Hi Everyone,
    I'm trying to write a VLOOKUP formula but am having some problems with the data it's returning.
    I have managed to get around the "#N/A" issue using "IF(ISERROR)" but now have a new problem.
    What I need my formula to do is as follows:
    Search for a Value in Column A of the 1st worksheet in the array A:F of the 2nd worksheet (entitled'24 Apr 2012') and return the value in Column 6 of that array.
    If the value in Column A does not exist with the array then return a BLANK value.
    So far so good. The problem arises when the value in column A does exist but the value in Column 6 of the array is actually blank. What the formula is then doing is returning a "0" rather than a BLANK value and this is messing up my results.
    Does anyone know how I can change my formula to return a BLANK rather than a zero. The actual formula is below:
    =IF(ISERROR(VLOOKUP($A2,'24 Apr 2012'!$A:$F,6,FALSE)),"",VLOOKUP($A2,'24 Apr 2012'!$A:$F,6,FALSE))

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Iferror vlookup

    hello can't you use index and match??

    =IFERROR(INDEX('24 Apr 2012'!$A:$F,MATCH($A2,'24 Apr 2012'!$A:$F),6),"")
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Iferror vlookup

    I think that still returns a 0, but I could be mistaken. (It did on my sample sheet.)

    A VLOOKUP alternative could be:

    =IF(VLOOKUP($A2,'24 Apr 2012'!$A:$F,6,0)="","",IFERROR(VLOOKUP($A2,'24 Apr 2012'!$A:$F,6,0),""))

    Also, you could just choose to hide zeros on your worksheet in Excel Options.

+ 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