+ Reply to Thread
Results 1 to 5 of 5

My HLookUp won't work

  1. #1
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile My HLookUp won't work

    Hi all

    Feeling sheepish. Having a bad day and can't see past this (what should be a) really simple question.

    I have a spreadsheet and I'm trying to put a HLOOKUP formula in cell AH :
    =HLOOKUP("April",Input,2)
    For some reason it's returning a #N/A error.
    If I change range T4:AE4 from month names to numbers, and then change my HLOOKUP formula to :
    =HLOOKUP(4,Input,2)
    then it works perfectly.

    But I don't want numbers. I want month names. What am I doing wrong??

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    I did a mock up of your scenario and had problems unless I entered "false" as the final parameter - have you tried that?
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Since the range lookup is omitted and by default set to 1 or TRUE, the lookup range needs to be sorted in ascending order. Since this is probably not the case and you're likely looking for an exact match, try setting the range lookup to 0 or FALSE.

    Hope this helps!

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi guys

    Quote Originally Posted by Domenic
    try setting the range lookup to 0 or FALSE
    Quote Originally Posted by EdMac
    unless I entered "false" as the final parameter - have you tried that?
    I really thought I'd tried that. Honest Perhaps my Excel was broke! It's OK now though.

    EdMac, sorry you had to try and set up a mock up - I actually had a test sheet prepared to upload but forgot to attach it. Like I said - bad day all round really ...

    Thanks for your help guys.

    DominicB

  5. #5
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi Dominic

    Glad you got it sorted

    Feeling sheepish.
    don't feel bad about being sheepish - In a recent survey, 99.98% of the sheep who responded reported feeling good about their sheepishness!

    Cheers

+ 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