+ Reply to Thread
Results 1 to 7 of 7

Want to replace NA with 0 but in a dual vlookup

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    75

    Want to replace NA with 0 but in a dual vlookup

    Hello,

    I have a dual VLOOKUP that returns sample 3(9), as looking up two values and putting both answers in the same CELL, I understand using =IF(ISNA(VLOOKUP but not how
    I could do it with dual VLOOKUP like I use below...

    MBCMDR

    Please Login or Register  to view this content.
    Last edited by MBCMDR; 03-15-2015 at 12:09 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,139

    Re: Want to replace NA with 0 but in a dual vlookup

    Is this what you meant??

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    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,571

    Re: Want to replace NA with 0 but in a dual vlookup

    Try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    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


  4. #4
    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,571

    Re: Want to replace NA with 0 but in a dual vlookup

    Or, maybe better:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS

  5. #5
    Registered User
    Join Date
    10-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    75

    Re: Want to replace NA with 0 but in a dual vlookup

    Glenn,
    Thank you but it answered back 0/1 where want an answer of 0(0)

    Trevor
    I was able to use your with a minor adjustment and made the solution (I was not using a second IF)
    Please Login or Register  to view this content.
    Thank you

    MBCMDR
    Last edited by MBCMDR; 03-14-2015 at 09:10 AM. Reason: break code up so see in a view than a long string

  6. #6
    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,571

    Re: Want to replace NA with 0 but in a dual vlookup

    You're welcome.




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  7. #7
    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,571

    Re: Want to replace NA with 0 but in a dual vlookup

    Note: The if the first VLOOKUP fails, so will the second as the search part is the same, it's just a different column being returned. Hence the second IF(ISNA()) is redundant and the reason for presenting the alternative. You could even use COUNTIF to determine if the search value is present.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or even

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS

+ 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. Replies: 3
    Last Post: 07-10-2014, 10:56 AM
  2. Replies: 4
    Last Post: 10-25-2013, 12:27 PM
  3. [SOLVED] Need help correcting a possible dual VLOOKUP formula
    By pearsonj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 02:01 PM
  4. Help! Dual Vlookup function? Sumproduct with index array?
    By thaprofessor33 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-03-2012, 09:08 AM
  5. Dual Lookup/Vlookup/Match criteria
    By jj72uk in forum Excel General
    Replies: 6
    Last Post: 10-16-2009, 04:03 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