+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP not functioning as expected

  1. #1
    Registered User
    Join Date
    05-29-2020
    Location
    London
    MS-Off Ver
    O365
    Posts
    3

    VLOOKUP not functioning as expected

    Hi all,

    I've attached an example (sorry it's not a few lines, the data is spread where doing that will take me a very long time).


    In Column B (Other Box Identifier) there is a VLOOKUP looking for the value in column A (Vendor Box Identifier), pulling a value in Column H (Other Box Identifier), paired with a table (Columns H-I), with a return value of Column H as that's the value i'm looking for.

    The formula seems to be partially working, however it's not returning all the results. I know for a fact the value in A8, has a match in column I, with an associated value in Column H, however the VLOOKUP does not return this. I can't figure out why, as it's matching some items but not all. Any view on what i'm doing wrong?

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,699

    Re: VLOOKUP not functioning as expected

    Welcome to the forum.

    The array is incorrect. Try this:

    =VLOOKUP(A2,I:I,1,FALSE)

    I do wonder, though, if this is what you are trying to do:

    =INDEX(H:H,MATCH(A2,I:I,0))

    VLOOKUP works natively from left to right, not from right to left.
    Last edited by AliGW; 05-30-2020 at 04:28 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,699

    Re: VLOOKUP not functioning as expected

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Registered User
    Join Date
    05-29-2020
    Location
    London
    MS-Off Ver
    O365
    Posts
    3

    Re: VLOOKUP not functioning as expected

    Hi there -

    In-fact, you solved my problem but with your suggestion VLOOKUP only works left to right. I swapped I and H around and it worked, sigh

    I was trying to pull values from column H, not I, so the forumula was correct:

    =VLOOKUP(A2,H:I,1,FALSE)

    but I had to swap columns H and I around in the sheet, and it worked. Thanks!

  5. #5
    Registered User
    Join Date
    05-29-2020
    Location
    London
    MS-Off Ver
    O365
    Posts
    3

    Re: VLOOKUP not functioning as expected

    Sorry formula was:

    =VLOOKUP(A2,H:I,2,FALSE)

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,699

    Re: VLOOKUP not functioning as expected

    Glad to help.

    In future, always mock up at least 15 rows of manually calculated results data so that we know what you are aiming for.

+ 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] VLOOKUP function not functioning
    By TBR1316 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2017, 12:37 PM
  2. Vlookup is not functioning
    By Miskondukt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-14-2014, 10:44 AM
  3. Indirect Function with Vlookup not functioning as expected.
    By jb9445 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2014, 05:46 PM
  4. VBA Vlookup not functioning. Please Help?
    By orozvik in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2013, 12:38 PM
  5. [SOLVED] Vlookup forumla not functioning
    By HHR in forum Excel General
    Replies: 3
    Last Post: 10-30-2013, 12:34 PM
  6. vlookup not functioning
    By dejayajay in forum Excel General
    Replies: 3
    Last Post: 09-07-2011, 09:24 PM
  7. Vlookup is not functioning
    By greekboyuk in forum Excel General
    Replies: 10
    Last Post: 11-25-2010, 06:33 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