+ Reply to Thread
Results 1 to 5 of 5

Lookup

  1. #1
    Registered User
    Join Date
    03-10-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Lookup

    Hi

    I have the following formula

    =LOOKUP(B15,{"T1","T2","T3","T4","T5","T6","T7","T8","T9","T10","T11","T12"},{1158,2428,2670,2670,1513,1737,1265,1282,1174,1239,1282,2001})

    all works ok until you enter T10 and over? it gives the value of T1 not what T10 should be ( 1239 ) etc

    Anyone know why this is doing this and what i can do to make it work correctly.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,811

    Re: Lookup

    The lookup array needs to be in ascending sequence, and its matches sequenced appropriately.

    You need to put them in the sequence T1, T10, T11, T12, T2, ...


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Lookup

    Hi

    You may not have set up vlookup for exact match, consequently it will return a close match which would be T1 instead of T10. If you end your formula with "false" it does not need to be sorted.


    Chris
    Last edited by dogberry; 12-04-2012 at 09:30 AM.
    Click my star if I helped Thanks

  4. #4
    Registered User
    Join Date
    03-10-2011
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Lookup

    Many thanks for the reply guys ascending sequence worked ok

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,811

    Re: Lookup

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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