+ Reply to Thread
Results 1 to 6 of 6

result of vlookup = #N/A, how to replace it by "0"

  1. #1
    Registered User
    Join Date
    10-12-2007
    Posts
    7

    result of vlookup = #N/A, how to replace it by "0"

    The title already says it: i would like the result of a vlookup to be automatically turned into zero if the value is not found in the reference list.

    I already tried this =if(vlookup(A1;c2:f24;3;false)="#N/A";0;vlookup(A1;c2:f24;3;false))

    but that did not work

    thanks in advance for any help !
    & greetings from brussels
    x

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =if(isna(vlookup(A1;c2:f24;3;false));0; vlookup(A1;c2:f24;3;false))

  3. #3
    Registered User
    Join Date
    10-12-2007
    Posts
    7
    it works, great, thanks !!

  4. #4
    Registered User
    Join Date
    07-23-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: result of vlookup = #N/A, how to replace it by "0"

    Hi

    I need to do this too. but for some reason it just won't work and comes up with the below. what am I doing wrong?

    error.png
    Attached Images Attached Images

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: result of vlookup = #N/A, how to replace it by "0"

    Please start your own thread and post a workbook, not a picture.
    Ben Van Johnson

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

    Re: result of vlookup = #N/A, how to replace it by "0"

    Hello Elisius, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following and make the necessary change. Thanks.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

+ 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