+ Reply to Thread
Results 1 to 4 of 4

Trouble with VLookup

  1. #1
    Registered User
    Join Date
    11-01-2007
    Location
    Stavanger, Norway
    MS-Off Ver
    Excel 2013
    Posts
    22

    Trouble with VLookup

    Column A is a defined list of Login Names, Column B is a VLookup which looks at a table of Login Names and Display Names
    Please Login or Register  to view this content.
    .

    When I select a login in Column A, it auto-populates the display name as expected and returns the error text "ERROR" if there is no display name. This is as expected.

    If I flip that, however, and create a defined list of Display Names in Column D and the VLookup (looking at the same table) in column E to return Login names, every result is an Error unless the Display and Login Names are exact matches.

    Please Login or Register  to view this content.
    If I change "FALSE" to "TRUE" it stops returning the error text, but the results are also incorrect...

    I am wracking my brain trying to figure out why and coming up empty. Can anyone help explain why this is happening? (Example Spreadsheet attached.
    Attached Files Attached Files
    Last edited by [email protected]; 08-20-2020 at 03:05 AM.

  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,704

    Re: Trouble with VLookup

    VLOOKUP expects to search for matching data in the leftmost column of the lookup table. Use this in E2 instead:

    =IFERROR(INDEX(MEDIA[User Name (Login)],MATCH(D2,MEDIA[Real Name (Display Name)],FALSE)),"ERROR")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-01-2007
    Location
    Stavanger, Norway
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Trouble with VLookup

    That did it! Thanks for the explainer too.

    Rep added.

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

    Re: Trouble with VLookup

    Glad to help - thanks for feeding back.

    Pete

+ 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. Having Trouble With VLookup
    By iccreamann in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-05-2016, 12:50 AM
  2. Trouble with Vlookup
    By djarcadian in forum Excel General
    Replies: 15
    Last Post: 11-14-2014, 11:42 PM
  3. [SOLVED] I having trouble with VLOOKUP
    By Bobby82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2013, 11:11 PM
  4. [SOLVED] vlookup trouble
    By bcoffee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-08-2012, 06:00 PM
  5. Trouble with Vlookup
    By bvscott in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-11-2011, 07:04 AM
  6. Vlookup trouble
    By ice in forum Excel General
    Replies: 4
    Last Post: 03-04-2010, 05:36 PM
  7. [SOLVED] Trouble with VLookup
    By RobG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2005, 12:06 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