+ Reply to Thread
Results 1 to 7 of 7

Vlookup problem, gets stuck halfway through looking up table

  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    stockholm
    MS-Off Ver
    Excel 2007
    Posts
    5

    Vlookup problem, gets stuck halfway through looking up table

    Hi I am having a issue with vlookup, any help would be much appreciated:

    I am trying to match accounts with a ref for example

    I paste in acount 123456789 and i use the formula vlookup(AI,accountref;2)

    I then have a seperate sheet were I list the accounts and next to the i have the ref
    For example

    A b

    123456789 ref1

    134567892 ref1


    145678923 ref2 etc.
    This usually works very well and gives me what I am looking for however,

    I have noticed that the lookup get's stuck about halfway down the list, there are no duplicates and the format are the same, eg.

    i paste in account 145678923 and I get ref1, for some reason it thinks 145678923 is 134567892

    Any help would be much appreciated

    Kind regards
    Last edited by henriklesaque; 03-19-2012 at 06:33 AM. Reason: solved

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Vlookup problem, gets stuck halfway through looking up table

    Try adding a zero as the fourth arguement to force an exact look up.

    =vlookup(A1,accountref,2,0)
    Martin

  3. #3
    Registered User
    Join Date
    02-02-2010
    Location
    stockholm
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Vlookup problem, gets stuck halfway through looking up table

    Hi,

    Thanks for tip but unfortunately it still gets stuck, on the same one, do you know if there is a max number of accounts i can have in the table? I can't see why it would get stuck on exactly that account

  4. #4
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Vlookup problem, gets stuck halfway through looking up table

    Does Index() and Match() have the same problem?

    Or is there a space in the lookup number or in the cell you are looking for? That would cause a problem.

  5. #5
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Vlookup problem, gets stuck halfway through looking up table

    Are you sure that the values are identical in the two lists? Check for trailing spaces.

  6. #6
    Registered User
    Join Date
    02-02-2010
    Location
    stockholm
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Vlookup problem, gets stuck halfway through looking up table

    Hi,

    I tried this vlookup(A1,accountref,2,0) again and it worked on second attempt.

    Thanks very much I appreciate the help

  7. #7
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Vlookup problem, gets stuck halfway through looking up table

    Please mark as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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