+ Reply to Thread
Results 1 to 2 of 2

Nested HLOOKUP Function

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    new york
    MS-Off Ver
    2013
    Posts
    3

    Nested HLOOKUP Function

    Ok so basically I need to nest an HLOOKUP function inside of an IF function. If the HLOOKUP value is positive, I want the numeric value. If it is negative, I want it to just have a hyphen. Here is the formula I produced, which will only give me numeric values, the hyphen will not come up for negatives.

    =IF(D$25+D$23*HLOOKUP($C28,$O$9:$R$12,3,0)>0,D$25+D$23*HLOOKUP($C28,$O$9:$R$12,3,0),"-")

  2. #2
    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: Nested HLOOKUP Function

    Hi, welcome to the forum

    hard to say without seeing any test data, but it looks like it should work. Perhaps...

    =IF(D$25+D$23*HLOOKUP($C28,$O$9:$R$12,3,0)>=0,D$25+D$23*HLOOKUP($C28,$O$9:$R$12,3,0),"-")

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

+ 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. HLookup with and function
    By rajasekhargvd in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 08-22-2014, 07:48 AM
  2. If, nested if, hlookup, vlookup
    By gregfetzer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-23-2012, 01:52 PM
  3. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  4. hlookup function
    By ahiru in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2006, 03:30 PM
  5. Rounding criteria within a nested vlookup and hlookup
    By Jay Z in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2005, 07:06 PM

Tags for this Thread

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