+ Reply to Thread
Results 1 to 4 of 4

How to insert ISNA in Vlookup VBA?

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Frankfurt
    MS-Off Ver
    Mac 2016
    Posts
    26

    How to insert ISNA in Vlookup VBA?

    Hi Everyone

    Was hoping someone could help me with this little question.

    I have a vlookup function in VBA and I would like to include ISNA to avoid N/A output in empty cells.
    This is what the vlookup looks like:

    Range("E15:E2004,I15:I2004").FormulaR1C1 = "=VLOOKUP(RC[-3],FRA!R1C8:R1031C28,21,FALSE)"
    Range("N15:N2004,S15:S2004").FormulaR1C1 = "=VLOOKUP(RC[-4],FRA!R1C8:R1031C28,21,FALSE)"


    Thank you kindly in advance!

    Best regards
    Daniel

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: How to insert ISNA in Vlookup VBA?

    IfError?

    "=iferror(VLOOKUP(RC[-3],FRA!R1C8:R1031C28,21,FALSE),"""")"

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to insert ISNA in Vlookup VBA?

    hi daniel. there's a better way to ISNA. it's IFERROR (in Excel 2007 and above) or IFNA (in excel 2013 and above). but to do ISNA, simply cover it over the formula:
    Please Login or Register  to view this content.
    you could do it shorter with IFERROR or IFNA:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    09-20-2016
    Location
    Frankfurt
    MS-Off Ver
    Mac 2016
    Posts
    26

    Re: How to insert ISNA in Vlookup VBA?

    Quote Originally Posted by jindon View Post
    IfError?

    "=iferror(VLOOKUP(RC[-3],FRA!R1C8:R1031C28,21,FALSE),"""")"
    my hero!!! Thank you. Was much easier than I thought it would be

+ 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. If Isna vlookup help
    By michaelpair in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-26-2013, 03:43 PM
  2. [SOLVED] Using IF ISNA VLOOKUP
    By liza_ri in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-31-2012, 12:04 PM
  3. Vlookup using ISNA ??
    By Carl1966 in forum Excel General
    Replies: 3
    Last Post: 01-27-2009, 12:13 PM
  4. ISNA and vlookup
    By jbwizoz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-21-2008, 05:16 PM
  5. Isna Vlookup
    By markswan20 in forum Excel General
    Replies: 1
    Last Post: 01-30-2008, 12:25 PM
  6. vlookup, IF, and ISNA
    By MMBOLI in forum Excel General
    Replies: 2
    Last Post: 08-17-2006, 11:53 AM
  7. isna vlookup
    By Tim in forum Excel General
    Replies: 2
    Last Post: 04-03-2005, 07:09 AM
  8. [SOLVED] ISNA and VLOOKUP
    By Chris Kellock in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2005, 04:06 AM

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