+ Reply to Thread
Results 1 to 3 of 3

not to show error when using if(isna & vlookup)

  1. #1
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2010 (office) 2013 (home)
    Posts
    256

    not to show error when using if(isna & vlookup)

    hi,

    I have two workbooks. One is the source that exported from accounting system, hence some account code may not appear if there is no transaction in that month. Another workbbok has a complete account code that linked to the source file by using if(isna & vlookup) function.

    As mentioned, no transactions for that accounts mean that code will not appear in source file. hence the linked will show error in another file. How can i change the error to "-"?

    thanks

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

    Re: not to show error when using if(isna & vlookup)

    If you are using ISNA and VLOOKUP in the usual way then you shouldn't get an error in the first place. Standard practice would be to use a formula a little like this

    =IF(ISNA(VLOOKUP(A1,B2:C10,2,0)),"-",VLOOKUP(A1,B2:C10,2,0))

    Then if A1 doesn't appear in the lookup range you'll get - rather than an error

    Which formula are you using?

  3. #3
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2010 (office) 2013 (home)
    Posts
    256

    Re: not to show error when using if(isna & vlookup)

    If(isna(vlookup(a19,'l:\vision\[cost by cost ctr.xls]98p10'!$b$1:$c$65536,2,false)),0,(vlookup(a19,'l:\vision\[cost by cost ctr.xls]98p10'!$b$1:$c$65536,2,false)))

    &

    if(iserror(vlookup($a101,'l:\vision\[cost by cost ctr.xls]98p10'!$a$1:$c$65536,3,false)),0,vlookup($a101,'l:\vision\[cost by cost ctr.xls]98p10'!$a$1:$c$65536,3,false))

+ 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