+ Reply to Thread
Results 1 to 4 of 4

VLookup stops half way

  1. #1
    Registered User
    Join Date
    12-07-2016
    Location
    new york
    MS-Off Ver
    2010
    Posts
    2

    VLookup stops half way

    Hi all,

    Having some trouble with a vlookup. Essentially I need to match data from B2 to the corresponding column in B1, based on the titles A1 and A2. Some B1 cells are expected to match with a 0, as there is no data in B2. But most are populating with #n/a, as there isn't a corresponding A2 value. The formula appears to be correct, as some cells fill in, but the rest just fill out with the dreaded #n/a. Not really sure what to do, as this is above my excel knowledge. I know I wordered this horribly, too.

    This is the formula i'm using: =VLOOKUP(A3:A4358,'2016'!A2:B3349,2,FALSE)

    Any help is appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,792

    Re: VLookup stops half way

    You should change the formula in B3 of the 2017 sheet to this:

    =VLOOKUP(A3,'2016'!$A$2:$B$3349,2,FALSE)

    When you copy this down the A3 will become A4, A5, A6 etc. on successive rows, but the table size (i.e. $A$2:$B$3349) will not change because of the dollar symbols in the cell references.

    Mind you, that does not improve things, and the reason you get a lot of those #N/A errors is because there are not many exact matches, and that is what the formula is looking for. If you take cell A4 of the 2017 sheet for example (i.e. "3LeggedThingLtd."), this will not match with cell A6 of the 2016 sheet (i.e. "3 Legged Thing Ltd") as there are spaces and no full-stop.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-07-2016
    Location
    new york
    MS-Off Ver
    2010
    Posts
    2

    Re: VLookup stops half way

    Thank you!!! Still makes my life easier. One was done manually and one was spit out by a computer, hence the spacing issues.

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

    Re: VLookup stops half way

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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

+ 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. VBA stops responding half way - impossible bet simulation
    By imyrgd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2015, 06:21 PM
  2. Replies: 1
    Last Post: 10-20-2014, 03:09 PM
  3. [SOLVED] Vlookup only half villed
    By Shimazu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 12:56 PM
  4. Replies: 1
    Last Post: 05-03-2013, 04:39 AM
  5. Replies: 4
    Last Post: 02-11-2011, 08:02 AM
  6. Replies: 2
    Last Post: 08-15-2006, 03:20 PM
  7. [SOLVED] Works beautifully but stops half way through
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2006, 02:40 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