+ Reply to Thread
Results 1 to 4 of 4

Hlookup error

  1. #1
    Registered User
    Join Date
    05-22-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    28

    Hlookup error

    Hi,

    I'm trying to look up a value if a cell is greater than 0.

    if the cell is 0 or less I want the formula to return $0.00.

    =IF(C4>0,HLOOKUP(B4,Sheet3!B5:D10,3,FALSE))

    I attached the spreadsheet as well.

    Thank you,
    PS
    Attached Files Attached Files
    Last edited by pleasesmile; 06-07-2013 at 09:26 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Hlookup error

    Looks like that should be Vlookup, not Hlookup.
    And you just need to add the ,0 at the end.

    =IF(C4>0,VLOOKUP(B4,Sheet3!B5:D10,3,FALSE),0)

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Hlookup error

    =IF(C4>0,HLOOKUP(B4,Sheet3!B5:D10,3,FALSE),0)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Hlookup error

    Hi,

    It's VLOOKUP you should be using, not HLOOKUP.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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