+ Reply to Thread
Results 1 to 2 of 2

Omit error when no value present

  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    Jersey
    Posts
    57

    Omit error when no value present

    Hi Guys
    I am trying to omit Formula errors while using the VLOOKUP funtion, i tried to use IF and AND funtions but to no avail. This is the formula i am using and i want it to return a "0" if it doesnt find the B3 value on The X3 colun.
    =VLOOKUP(B3,Data!$X$3:$Y$200,2,FALSE)
    I have also tried with conditional formating, am I missing something?

    Many thanks
    Jsantos
    Last edited by jsantos; 04-18-2011 at 03:31 PM. Reason: Posted under wrong section

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,536

    Re: Omit error when no value present

    What version of Excel are you using ... you should update your profile.

    2003

    =IF(ISNA(VLOOKUP(B3,Data!$X$3:$Y$200,2,FALSE)),0,VLOOKUP(B3,Data!$X$3:$Y$200,2,FALSE)
    )


    2007

    =IFERROR(VLOOKUP(B3,Data!$X$3:$Y$200,2,FALSE),0)


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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