+ Reply to Thread
Results 1 to 4 of 4

VBA VLookup not returning desired results

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Somewhere
    MS-Off Ver
    Excel 2010
    Posts
    39

    VBA VLookup not returning desired results

    All,

    I'm trying use VBA to do a vlookup to return some values. The code that I have will put a vlookup in the desired cells, but starts returning no value for every other cell at loop 17. I was thinking there was probably an obvious error in my code since I'm a beginner. Below is the code that I have:

    Please Login or Register  to view this content.
    Does anything thing stand out that is obviously incorrect in this code?

    Thanks in advance,

    Jarett
    Last edited by jsmilke; 12-17-2016 at 08:04 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: VBA VLookup not returning desired results

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: VBA VLookup not returning desired results

    Hi,
    What kind of data is in Sht.Cells(i, 4) and LURange?
    Could you attach sample of your data?
    And please use code tags around your code.

  4. #4
    Registered User
    Join Date
    02-10-2014
    Location
    Somewhere
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: VBA VLookup not returning desired results

    Alright, alright...I fixed it!

+ 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. Using vLookup based on results from a vLookup & returning an undetermined list
    By NormalityBan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-14-2014, 05:02 AM
  2. Array Formula NOT Returning All Desired Results
    By HB333 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2014, 06:43 AM
  3. [SOLVED] VLOOKUP returning incorrect results
    By Jennsy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2012, 03:08 PM
  4. vlookup returning multiple results
    By Beclaireful in forum Excel General
    Replies: 2
    Last Post: 10-26-2011, 05:07 PM
  5. Large formula not returning desired results
    By Climaxgp in forum Excel General
    Replies: 2
    Last Post: 04-21-2010, 06:05 AM
  6. RE: Vlookup Returning Same Results on Each Row
    By Kleev in forum Excel General
    Replies: 0
    Last Post: 12-14-2005, 03:40 PM
  7. [SOLVED] Vlookup Returning Same Results on Each Row
    By tlatta in forum Excel General
    Replies: 0
    Last Post: 12-14-2005, 03:40 PM

Tags for this Thread

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