+ Reply to Thread
Results 1 to 4 of 4

Formula result returning #n/a

  1. #1
    Registered User
    Join Date
    10-21-2008
    Location
    South Africa
    Posts
    1

    Formula result returning #n/a

    Here is the problem

    I have a vlookup formula that looks up data in a specific table. now on occasion the vlookup will not find a result in the table and return with a #n/a. I understand why it is doing this but what i need to do is for the result to be a 0 instead of #n/a can i do this with conditional formating or something.

    Thanks

  2. #2
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    Hi Ulaw,

    this should do the trick

    =If(ISNA(vlookup(enter your vlookup here)),0,vlookup(enter your vlookup here))

    that should work
    There are only 10 types of people in the world:
    Those who understand binary, and those who don't!

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can use ISERROR Function

    =IF(ISERROR(your formula here,0,your formula here)

    If you have a lot of such functions it can slow calculation times. In which case you can use Con ditional Formatting to hide the error, see

    http://www.excel-it.com/excel_condit...formatting.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    another possibility =if(countif(yourrange,lookupvalue),vlookup(...),"")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Spellnumber
    By Williams in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 02-16-2020, 03:34 AM
  2. number to words
    By vjn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2008, 04:57 AM
  3. convert formula to its result
    By shelzbelz in forum Excel General
    Replies: 2
    Last Post: 12-08-2007, 04:59 PM
  4. Vlookup formula for more than one result
    By DKerr in forum Excel General
    Replies: 7
    Last Post: 02-01-2007, 09:43 AM
  5. formula for adding 4 adjacent columns & dividing result by 1.833
    By FredricJLowe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2006, 07:59 PM

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