+ Reply to Thread
Results 1 to 7 of 7

Skip blank rows in VBA Vlookup

  1. #1
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Skip blank rows in VBA Vlookup

    I am looking for a way to skip the blank rows in a range. My code:
    Please Login or Register  to view this content.
    in this range rw = 14 To 170, I wanna skip any blank rows and move to the next. It is supposed to search the value in column C in another file.
    Any ideas on how to do this?
    Click the * to say thanks.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Skip blank rows in VBA Vlookup

    Do you mean this:

    Please Login or Register  to view this content.
    Rory

  3. #3
    Registered User
    Join Date
    09-30-2019
    Location
    Chicago
    MS-Off Ver
    2016
    Posts
    72

    Re: Skip blank rows in VBA Vlookup

    Would adding something like
    Please Login or Register  to view this content.
    after the "For" not fix it?

    Edit: Posted as the user above me was positing. Something along the lines of their solution.

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Skip blank rows in VBA Vlookup

    Thank you rorya, fixed my issue. One more question. Is it possible to wrap an application.vlookup in a IFERROR formula?

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Skip blank rows in VBA Vlookup

    Yes, although indirectly. And since you're looking up the same value both times, you should just do that once:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Skip blank rows in VBA Vlookup

    Great stuff rorya. Thank you very much!

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Skip blank rows in VBA Vlookup

    Glad to help.

+ 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. [SOLVED] Formula to Skip Blank Rows and Pull the Next Non-Blank
    By karimel_romeo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2017, 01:04 PM
  2. VLookup to skip blank cell
    By Photanglong in forum Excel General
    Replies: 7
    Last Post: 03-22-2017, 05:56 AM
  3. Vlookup if blank skip to next value loop
    By woodburner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-24-2014, 04:57 PM
  4. Need help to make VBA to skip rows that are blank
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2013, 05:55 PM
  5. Vlookup formula to skip blank cell and give the next value
    By Kehjz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-19-2013, 06:06 AM
  6. Skip Blank rows
    By Bmxerdude2087 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2012, 11:09 PM
  7. Excel 2007 : skip blank cells in vlookup
    By jrable in forum Excel General
    Replies: 9
    Last Post: 03-22-2011, 08:57 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