+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP - isn't working??

  1. #1
    Registered User
    Join Date
    04-15-2011
    Location
    gray
    MS-Off Ver
    excel 2007
    Posts
    52

    VLOOKUP - isn't working??

    Attached is my spreadsheet I am working on ... in the 'Small" tab you will see a string of N/A on the right. I was doing a simple vlookup that isn't working. I don't see any formatting of the B column ticker symbols that should interfere with the lookup on the "universe" tab - both sets of ticker symbols are set to "general" ... the same data could be looked up on the IWV tab as well ... I tried looking up on either worksheet both ways and come up with the same errors.


    Can someone take a peak and let me know if they see what the problem is?

    Thanks. Terri
    Attached Files Attached Files
    Last edited by tlapointe1970; 04-16-2011 at 10:13 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUP - isn't working??

    check all columns with ago etc some have spaces after the names so ago will not match ago space space
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: VLOOKUP - isn't working??

    Most of your data has a varying amount of leading and trailing spaces.
    This is causing the function to fail because the various sheets differ in the amount of spaces any one code has.

    There are also 872 duplicates in your lookup table "universe" your lookup will return the first found in each case so your data will be compromised.

    The only way to go is to clean out all your data that consists of a code in all sheets,
    Use e.g. Trim(A1) in a spare column, then Paste Special > Values over the code column

    Once you have checked for duplicates all should be straight forward.

    I have trimmed "universe", "IWW", & "IWV" in the attached.

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLOOKUP - isn't working??

    another way to trim spaces is text to columns
    select column
    data/text to columns/fixed width
    next
    create a break way over to the right
    next
    select any column (probably only one) with no data in it
    select
    do not import column(skip)
    click finish

  5. #5
    Registered User
    Join Date
    04-15-2011
    Location
    gray
    MS-Off Ver
    excel 2007
    Posts
    52

    Re: VLOOKUP - isn't working??

    Thank you very much for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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