+ Reply to Thread
Results 1 to 4 of 4

Problem with VLOOKUP

  1. #1
    Forum Contributor
    Join Date
    11-30-2005
    Location
    Penzance Cornwall, UK
    MS-Off Ver
    Office 365
    Posts
    198

    Problem with VLOOKUP

    Hi to ALL,

    As the title suggests, I have a problem with the VLOOKUP function.

    I'm not sure if I can explain this properly, but here goes.

    I am using Win XP home with Excel 2000.

    I have a spreadsheet named smvbook2007 on my C drive and I am using the following formulas in another spreadsheet named smvewac also on my C drive.



    IF(A5="","",VLOOKUP(A5,'C:\[smvbook2007.xls]Sheet1'!$A$1:$G$4999,2,FALSE))

    IF(A5="","",VLOOKUP(A5,[smvbook2007.xls]Sheet1!$A$5:$G$4999,4,FALSE))

    IF(A5="","",VLOOKUP(A5,[smvbook2007.xls]Sheet1!$A$5:$G$4999,6,FALSE))


    The spreadsheet smvbook2007 contains 8 columns and I am lookingup columns 2, 4 & 6.

    Column A in both sheets is formatted 000 000 00

    Column A in sheet smvbook2007 contains blocks of numbers with the first 3 digits starting, 001, 002, 003, 011, 012, 055, etc.

    All the VLOOKUP's seem to work except the ones beginning 001. I have tried retyping some of these numbers. If I delete a 001 number and re-enter it further down the sheet (smvbook2007) it works.

    Any Ideas?

    TIA
    Keith (Cornwall UK)
    Last edited by VBA Noob; 01-06-2008 at 03:51 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Can you post an example?

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You could also try the tips on the link

    Or if lookup cell formatted as text try

    =VLOOKUP(A5+0,
    http://www.contextures.com/xlFunctions02.html#Trouble

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Contributor
    Join Date
    11-30-2005
    Location
    Penzance Cornwall, UK
    MS-Off Ver
    Office 365
    Posts
    198

    Vlookup

    Please find attached an example of what I am trying to do. Also, please note that SOME of the 001 000 00 figures have now worked for some reason!

    TIA

    Keith
    Attached Files Attached Files

+ 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