+ Reply to Thread
Results 1 to 4 of 4

HLOOKUP not working...

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    New York, US
    MS-Off Ver
    2010 Professional Plus
    Posts
    8

    HLOOKUP not working...

    I have the following in a table format (corresponding range is C3:G4):

    Total term end ann dis
    1.5% 2.0% 2.5% 3.0% 3.5%

    On cell C6 I have a list with options: Total, term, end, ann, dis.

    For one of my calculations, I need to know which percentage to use based on C6 value so I'm using HLOOKUP(C6,C3:G4,2) but I'm getting the wrong answers - the percentage being looked up is wrong. What am I doing wrong?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: HLOOKUP not working...

    Like other lookup functions, if you omit the 4th argument in the HLOOKUP() function (https://support.office.com/en-us/art...5-e1ad662ed95f ), then Excel expects the data in the 1st row to be sorted in ascending order. Your data are clearly not. If you will always be looking for an exact match to lookup_value, then add the 4th argument=FALSE to your HLOOKUP() function.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    01-29-2015
    Location
    New York, US
    MS-Off Ver
    2010 Professional Plus
    Posts
    8

    Re: HLOOKUP not working...

    Thanks, FALSE argument made it work

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

    Re: HLOOKUP not working...

    Please don't crosspost.

    http://www.mrexcel.com/forum/excel-q...t-working.html

    and see the link below for the reason why.

    http://www.excelguru.ca/content.php?184
    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.

+ 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. Problem: HLOOKUP function as an array formula not working!
    By TomU in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-10-2014, 03:04 AM
  2. [SOLVED] Hlookup/Match formula not working on 2 drop down items
    By pleasesmile in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2013, 11:21 AM
  3. HLOOKUP not working
    By mufan in forum Excel General
    Replies: 2
    Last Post: 01-04-2010, 03:14 PM
  4. Table Array within hlookup not working
    By mattted in forum Excel General
    Replies: 3
    Last Post: 03-03-2009, 07:09 PM
  5. Replies: 1
    Last Post: 09-21-2006, 01:16 PM

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