+ Reply to Thread
Results 1 to 6 of 6

problem with VLOOKUP

  1. #1
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    problem with VLOOKUP

    Dear Community,

    I have a problem when using VLOOKUP. I copy pasted countries and their codes. I want Excel to order the codes in the different table. I used a formula:

    =VLOOKUP(A234;$E$226:$F$464;2;FALSE)

    It didn't find all codes even though they are in the second table. I see errors. I attached a sample of my Excel file
    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,737

    Re: problem with VLOOKUP

    Some of the entries in column A have trailing spaces, so they do not produce an exact match with your lookup table. You can correct this by using this formula in B2:

    =VLOOKUP(TRIM(A2);$E$226:$F$464;2;FALSE)

    then copy it down.

    Hope this helps.

    Pete

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: problem with VLOOKUP

    Please remove the space at the end in A234 and you will find the corresponding code.

  4. #4
    Registered User
    Join Date
    02-22-2022
    Location
    Germany
    MS-Off Ver
    365
    Posts
    34

    Re: problem with VLOOKUP

    Thank you for your kind help!

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

    Re: problem with VLOOKUP

    Glad to help - thanks for the rep.

    Pete

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: problem with VLOOKUP

    You are Welcome, thanks for the feedback and rep .

+ 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. Vlookup problem in a loop with cell property and variable cell problem (long title sry)
    By ExcelsiorLux in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 10:38 AM
  2. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  3. vlookup problem
    By steveg666 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2013, 07:18 PM
  4. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  5. vlookup problem
    By Ted Dennis in forum Excel General
    Replies: 6
    Last Post: 11-24-2011, 04:57 PM
  6. VLOOKUP Problem
    By Mooseman60 in forum Excel General
    Replies: 14
    Last Post: 12-04-2010, 04:51 AM
  7. vlookup problem and count problem
    By thy00123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2009, 04:31 AM
  8. VLookup problem
    By Alan Beban in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 04:05 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