+ Reply to Thread
Results 1 to 3 of 3

IF ISNA Vlookup problem (with 2 different Vlookups)

Hybrid View

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    33

    IF ISNA Vlookup problem (with 2 different Vlookups)

    Hi,

    Have been working on this formula and want to add another argument.

    =IF(ISNA(VLOOKUP(C7&" - "&E7;'[Workbook1.xls]Total'!$H:$I;2;FALSE));"";((VLOOKUP(E7;'[Workbook1.xls]Total'!$C:$I;7;FALSE))))

    What I want to do is when the first formula failes and returns a blank I want it to perform another Vlookup in just the range

    "VLOOKUP(E7;'[Workbook1.xls]Total'!$C:$I;7;FALSE) ".
    I tried to put it like this:

    =IF(ISNA(VLOOKUP(C7&" - "&E7;'[Workbook1.xls]Total'!$H:$I;2;FALSE));((VLOOKUP(E7;'[Workbook1.xls]Total'!$C:$I;7;FALSE))))

    but then the values that was returned in the first scenario failes.

    Any ideas ?
    Last edited by thylander; 03-09-2011 at 10:26 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF ISNA Vlookup problem (with 2 different Vlookups)

    So you want if the first part fails, give answer to second part, else give answer to first part?

    something like:

    =IF(ISNA(VLOOKUP(C7&" - "&E7;'[Workbook1.xls]Total'!$H:$I;2;FALSE));VLOOKUP(E7;'[Workbook1.xls]Total'!$C:$I;7;FALSE);VLOOKUP(C7&" - "&E7;'[Workbook1.xls]Total'!$H:$I;2;FALSE))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-23-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    33

    Re: IF ISNA Vlookup problem (with 2 different Vlookups)

    It worked, thanks alot!

+ 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