+ Reply to Thread
Results 1 to 5 of 5

HLOOKUP doesnt work in all rows

  1. #1
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    HLOOKUP doesnt work in all rows

    Hi guys, i'm trying to get some results with =HLOOKUP(H6;Sheet1!$D$5:$AB$31;27;FALSE) but in the first row works fine. When i paste the formula in the next rows i get #N/A. With =IFERROR(HLOOKUP(H6;Sheet1!$D$5:$AB$31;27;FALSE);"") just hide the #N/A. Can you tell me what im doing wrong and i can get the result only in the first row? Thanks in advance.

  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,939

    Re: HLOOKUP doesnt work in all rows

    It seems that H6 exists in that range, but are you sure that H7 is there too? If you think it does, check for leading/trailing spaces

    Hard to say without seeing a sample workbook, can you upload a sample?
    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
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Χαμένος στο διάστημα
    MS-Off Ver
    2016
    Posts
    383

    Re: HLOOKUP doesnt work in all rows

    Thanks FDibbins for your interest, actually right now no, but i insert =IFERROR(INDEX(Sheet1!$D$31:$AB$31;MATCH($F6;Sheet1!$D$4:$AB$4;0));"") and i' ve got that i want properly

  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
    52,939

    Re: HLOOKUP doesnt work in all rows

    Great stuff. Index/Match is often a better option to use, instead of v/hlookup()

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: HLOOKUP doesnt work in all rows

    With the formula in Post #3 your are looking at the range D4:AB4, but the table in your HLOOKUP formula in your first post was looking at row 5.

    Pete

+ 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] Freeze columns and rows doesnt seem to work
    By colwise in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-21-2015, 11:15 PM
  2. why doesnt this work
    By cybereyeball in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-02-2012, 10:10 AM
  3. sum totaling doesnt work
    By ScottO in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  4. sum totaling doesnt work
    By ScottO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  5. sum totaling doesnt work
    By Bedros in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. [SOLVED] TAB Key doesnt work.
    By Murat D. Hekimoðlu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2005, 07:06 AM
  7. vba macros doesnt work on web
    By cgal in forum Excel General
    Replies: 0
    Last Post: 01-06-2005, 05:42 AM

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