Results 1 to 10 of 10

Thread: Excel Vlookup not working (sort of)

  1. #1
    Senior Member
    Join Date
    Dec 2004
    Posts
    360
    Thanks
    27
    Thanked
    2 times in 2 posts
    • piggeh's system
      • Motherboard:
      • ASUS AiLife IP35
      • CPU:
      • Intel Q6600 G0
      • Memory:
      • OCZ 2x2GB DDR2 (5-4-4-18)
      • Storage:
      • 500GB Spinpoint
      • Graphics card(s):
      • Inno3D 8800GT
      • PSU:
      • Corsair HX520W
      • Case:
      • Antec 900 Case
      • Operating System:
      • Vista 64
      • Monitor(s):
      • Samsung 24" SM2494HS
      • Internet:
      • Virgin Cable

    Excel Vlookup not working (sort of)

    I have an excel spreadsheet with a reference number in one column (on say, Sheet X). In another sheet (sheet Y for reference sake) I have the same reference numbers but also additional info such as short text, etc. When I go to do a vlookup to import in this short text into sheet X, excel tells me 'N/A' for every line. That is, until I double click into the reference number on sheet X and then simply press enter, at which point it right aligns the value within the column and decides that it can now find this value in the other sheet, despite the value not actually changing. :|

    Anyone know why this happens and if there's an easy fix? Have a couple of hundred of lines to otherwise 'double-click and then enter on' just to make it recognise the text properly. Also happens quite a few times it seems, not the first time it's happened and on different machines.

    Excel 2000 (9.0.3821) fwiw although also happened on excel 97.

  2. #2
    Welcome to stampytown! Salazaar's Avatar
    Join Date
    Dec 2004
    Location
    Oxford-ish
    Posts
    4,459
    Thanks
    505
    Thanked
    353 times in 254 posts
    • Salazaar's system
      • Motherboard:
      • Asrock B450m Steel Legend
      • CPU:
      • Ryzen 5 3600
      • Graphics card(s):
      • 5700 XT

    Re: Excel Vlookup not working (sort of)

    I'm not sure why this is happening but there are a couple of checks you could try...

    Is the list in sheet Y ordered? It should really be set up so that it's in order of reference number.

    Are you sure that both sets of reference numbers are formatted the same, i.e they're definately formatted as numbers not as text or something?
    ____
    (='.'=)
    (")_(")

  3. Received thanks from:

    piggeh (18-08-2008)

  4. #3
    Senior Member
    Join Date
    Dec 2004
    Posts
    360
    Thanks
    27
    Thanked
    2 times in 2 posts
    • piggeh's system
      • Motherboard:
      • ASUS AiLife IP35
      • CPU:
      • Intel Q6600 G0
      • Memory:
      • OCZ 2x2GB DDR2 (5-4-4-18)
      • Storage:
      • 500GB Spinpoint
      • Graphics card(s):
      • Inno3D 8800GT
      • PSU:
      • Corsair HX520W
      • Case:
      • Antec 900 Case
      • Operating System:
      • Vista 64
      • Monitor(s):
      • Samsung 24" SM2494HS
      • Internet:
      • Virgin Cable

    Re: Excel Vlookup not working (sort of)

    Sheet Y is in ascending order by reference number, both are formatted as general (changing to format as text or number makes no difference).

  5. #4
    Senior Member
    Join Date
    Dec 2004
    Posts
    360
    Thanks
    27
    Thanked
    2 times in 2 posts
    • piggeh's system
      • Motherboard:
      • ASUS AiLife IP35
      • CPU:
      • Intel Q6600 G0
      • Memory:
      • OCZ 2x2GB DDR2 (5-4-4-18)
      • Storage:
      • 500GB Spinpoint
      • Graphics card(s):
      • Inno3D 8800GT
      • PSU:
      • Corsair HX520W
      • Case:
      • Antec 900 Case
      • Operating System:
      • Vista 64
      • Monitor(s):
      • Samsung 24" SM2494HS
      • Internet:
      • Virgin Cable

    Re: Excel Vlookup not working (sort of)

    Also I should add the values on sheet X originally came froma pivot table, which was then CnP'd with 'paste (special..)> value' only.

  6. #5
    Welcome to stampytown! Salazaar's Avatar
    Join Date
    Dec 2004
    Location
    Oxford-ish
    Posts
    4,459
    Thanks
    505
    Thanked
    353 times in 254 posts
    • Salazaar's system
      • Motherboard:
      • Asrock B450m Steel Legend
      • CPU:
      • Ryzen 5 3600
      • Graphics card(s):
      • 5700 XT

    Re: Excel Vlookup not working (sort of)

    And you've got the range lookup operator set to 'False'?
    ____
    (='.'=)
    (")_(")

  7. #6
    Senior Member
    Join Date
    Dec 2004
    Posts
    360
    Thanks
    27
    Thanked
    2 times in 2 posts
    • piggeh's system
      • Motherboard:
      • ASUS AiLife IP35
      • CPU:
      • Intel Q6600 G0
      • Memory:
      • OCZ 2x2GB DDR2 (5-4-4-18)
      • Storage:
      • 500GB Spinpoint
      • Graphics card(s):
      • Inno3D 8800GT
      • PSU:
      • Corsair HX520W
      • Case:
      • Antec 900 Case
      • Operating System:
      • Vista 64
      • Monitor(s):
      • Samsung 24" SM2494HS
      • Internet:
      • Virgin Cable

    Re: Excel Vlookup not working (sort of)

    yep

  8. #7
    Senior Member
    Join Date
    Dec 2004
    Posts
    360
    Thanks
    27
    Thanked
    2 times in 2 posts
    • piggeh's system
      • Motherboard:
      • ASUS AiLife IP35
      • CPU:
      • Intel Q6600 G0
      • Memory:
      • OCZ 2x2GB DDR2 (5-4-4-18)
      • Storage:
      • 500GB Spinpoint
      • Graphics card(s):
      • Inno3D 8800GT
      • PSU:
      • Corsair HX520W
      • Case:
      • Antec 900 Case
      • Operating System:
      • Vista 64
      • Monitor(s):
      • Samsung 24" SM2494HS
      • Internet:
      • Virgin Cable

    Re: Excel Vlookup not working (sort of)

    couldnt work out how to solve This time I just went through each line individually so that reference worked. However this happens occassionally so if anyone knows a solution it would eb appreciated!

  9. #8
    Registered User
    Join Date
    Sep 2010
    Posts
    1
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Excel Vlookup not working (sort of)

    I think I was having the same problem - go to Excel Options -> Formulas -> Workbook Calculation and make sure it is set to AUTOMATIC.

    Hope that helps.

  10. #9
    Pork & Beans Powerup Phage's Avatar
    Join Date
    May 2009
    Location
    Kent
    Posts
    6,260
    Thanks
    1,618
    Thanked
    608 times in 518 posts
    • Phage's system
      • Motherboard:
      • Asus Crosshair VIII
      • CPU:
      • 3800x
      • Memory:
      • 16Gb @ 3600Mhz
      • Storage:
      • Samsung 960 512Gb + 2Tb Samsung 860
      • Graphics card(s):
      • EVGA 1080ti
      • PSU:
      • BeQuiet 850w
      • Case:
      • Fractal Define 7
      • Operating System:
      • W10 64
      • Monitor(s):
      • Iiyama GB3461WQSU-B1

    Re: Excel Vlookup not working (sort of)

    Also - go to both the reference and the variable column and in each case highlight the column, then go to the 'Data' menu and select 'text to columns'.
    Had this prob myself many times.
    Society's to blame,
    Or possibly Atari.

  11. #10
    Member
    Join Date
    Aug 2009
    Posts
    182
    Thanks
    3
    Thanked
    23 times in 22 posts
    • barry2811's system
      • Motherboard:
      • Gigabyte GA-Z87-HD3
      • CPU:
      • Intel i5 4670K (cooled by Noctua NH-D14)
      • Memory:
      • 2 x 8GB Corsair
      • Storage:
      • Samsung Pro 128GB Boot Drive, 1 x 6TB Seagate, 1 x 3TB Seagate and 256GB Crucial SSD for games
      • Graphics card(s):
      • Asus GTX970 Strix
      • PSU:
      • EVGA SuperNova 650 G2
      • Case:
      • NZXT S340 Elite
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Viewsonic VG2439M-LED
      • Internet:
      • Sky Fibre

    Re: Excel Vlookup not working (sort of)

    First thing I do with any VLOOKUP issues is to TRIM() and in the case of numeric references VALUE().

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. .NET Reading Multiple Excel Files
    By Shadow_101 in forum Software
    Replies: 5
    Last Post: 23-11-2007, 03:22 PM
  2. Excel + Database + Automated
    By Kezzer in forum Software
    Replies: 4
    Last Post: 29-03-2007, 04:54 PM
  3. Excel Formula Help
    By Lead_Head in forum Software
    Replies: 7
    Last Post: 02-10-2006, 10:09 AM
  4. Just how working class...
    By Stewart in forum General Discussion
    Replies: 17
    Last Post: 23-01-2004, 08:31 PM
  5. 2 Motherboards - Stopped Working
    By VigourX in forum PC Hardware and Components
    Replies: 4
    Last Post: 07-12-2003, 10:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •