+ Reply to Thread
Results 1 to 6 of 6

Lookup problems

  1. #1
    Registered User
    Join Date
    08-08-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Lookup problems

    Hi All,
    I am having a major problem when using lookup formula. The lookup table is as below but the value for 8 > 20 always returns 3 instead of the 0.25. Is it the way I have the lookup table please? The formula I am using is =LOOKUP(K9,Sheet4!I6:J11) and on Sheet 4 is the look up table:

    8 > 20 0.25
    16 > 26 0.5
    22 > 36 0.75
    30 > 50 1
    40 > 60 2
    60+ 3


    Many thanks.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Lookup problems

    without seeing your data, it's hard to tell (for me at least).

    post the excel file, without confidentional information.

    please also add the desired result.

    I think a VLookup will solve your problem.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup problems

    Your table doesn't make any sense (to me!).

    What does this mean:

    8 > 20

    Does it mean from 8 to 20 (inclusive)?

    If so, then you have overlapping levels. For example, if the lookup value is 17 which level does it fall into? It could fall into 8 > 20 or 16 > 26.

    Need some clarification.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-08-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Lookup problems

    Hi Both,
    I think I have sorted it. The problem appears to have been the 8 > 20 cell. I changed this to <20 and the lookup now works.
    Thanks for your time.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Lookup problems

    If 8 > 20 is text in 1 cell, then maybe this?

    =VLOOKUP(K9,Sheet4!$I$6:$J$11,2,0)

    If you are trying to say that 8 > 20 is a range from 8 to 20, then, as Tony mentioned, you have some serious overlaps there that you need to resolve 1st
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup problems

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problems with V lookup
    By barrelbowl in forum Excel General
    Replies: 1
    Last Post: 05-10-2012, 03:09 PM
  2. Excel 2007 : Problems With Lookup
    By suaun07 in forum Excel General
    Replies: 6
    Last Post: 03-12-2012, 07:49 AM
  3. LOOKUP () problems
    By oddcarout in forum Excel General
    Replies: 1
    Last Post: 05-19-2008, 02:50 PM
  4. [SOLVED] Lookup problems
    By cLiffordiL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2006, 04:30 AM
  5. [SOLVED] Lookup problems
    By thecuzin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-06-2005, 08:06 AM

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