+ Reply to Thread
Results 1 to 4 of 4

Hlookup only returns first value

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    Lithuania
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    13

    Hlookup only returns first value

    Hello. I am facing a problem using Hlookup function. I am using Hlookup to do a control check of consolidation i am doing here, however it only returns the first found value instead of all correct values (or range).
    I am attaching a file with an example. In the file formula is used in Supply(S) sheet on row 73.
    Attached Files Attached Files
    Last edited by Strazdas; 12-27-2013 at 02:11 PM.

  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
    53,048

    Re: Hlookup only returns first value

    Thats what vlookup/hlookup does - it returns the very 1st match it finds...and then stops searching.

    Try this instead...
    =IF(M72=SUMIF('Supply(R)'!$C$2:$CL$2,'Supply(S)'!M$2,'Supply(R)'!$C$94:$CL$94),TRUE,M72-SUMIF('Supply(R)'!$C$2:$CL$2,'Supply(S)'!M$2,'Supply(R)'!$C$94:$CL$94))
    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

  3. #3
    Registered User
    Join Date
    01-18-2013
    Location
    Lithuania
    MS-Off Ver
    MS Office Professional Plus 2010
    Posts
    13

    Re: Hlookup only returns first value

    This has worked. Thank you. I am marking this as solved

  4. #4
    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
    53,048

    Re: Hlookup only returns first value

    Happy to help and thanks for the feedback

+ 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. [SOLVED] Hlookup function returns 0 when there is no value!
    By telnoman in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2019, 05:15 PM
  2. Replies: 6
    Last Post: 06-11-2013, 08:32 PM
  3. Hlookup with multiple returns
    By Hoseman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2013, 09:59 PM
  4. HLOOKUP in HLOOKUP, Base Estimate Table in Excel
    By gqdallas in forum Excel General
    Replies: 20
    Last Post: 10-19-2009, 01:41 PM
  5. Lookup Needed, Hlookup that returns value within same row
    By Enci in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2009, 01:46 AM

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