+ Reply to Thread
Results 1 to 3 of 3

Hlookup with range of values

  1. #1
    Registered User
    Join Date
    09-09-2010
    Location
    San Francisco
    MS-Off Ver
    Excel 2007
    Posts
    4

    Hlookup with range of values

    Hi,

    I'm trying to do an hlookup based on the attached table.

    Problem is that each column is for a range of values. If I do an hlookup without an exact match that works sometimes, but not always. Since the formula picks the closest value, if sometimes picks the upper bound of the wrong range since that is closer to the value than the upperbound of the correct range.

    =HLOOKUP(F1,$A$2:$D$3,2)

    For example, when F1 is 9,001 I'd like to the formula to return "8", but it returns "7". Any thoughts?

    Thanks!!
    Attached Images Attached Images

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Hlookup with range of values

    Try removing the dashes in row 1 and converting all of the first 2 rows to numbers...

    enter a 0 in an empty cell outside the range and copy it, then select A1:D4 and go to Edit|Paste Special and select Values.

    and make the formula:

    =HLOOKUP(F1,$A$1:$D$3,3)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-09-2010
    Location
    San Francisco
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Hlookup with range of values

    Awesome. Thanks so much!

+ 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