+ Reply to Thread
Results 1 to 6 of 6

HLOOKUP with nested MATCH function

  1. #1
    Registered User
    Join Date
    11-21-2017
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    21

    HLOOKUP with nested MATCH function

    Hi everyone, I have an HLOOKUP formula with a nested Match function as per the attached sample sheet. It returns the correct number, but when I drag the formula down the column, all other cells return #N/A. Why is this happening? If I were to retype the formula into one of the cells returning #N/A, it will return the correct value. Any help much appreciated.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: HLOOKUP with nested MATCH function

    You did not have the cell references $'d correctly to lock them:

    =HLOOKUP(B$1,Interactions!$A$1:$F$23, MATCH($A2,Interactions!$A$1:$A$23,0), FALSE)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-21-2017
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    21

    Re: HLOOKUP with nested MATCH function

    Thank you for the help! By the way, how would the syntax work if the table and/or lookup array are formatted as tables or a pivot table? I.e. the formula syntax would show the table and header names without cell references.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: HLOOKUP with nested MATCH function

    I rarely use Pivots these days, so, Pass on that bit. HLOOKUP and Tables are a bit messy. FWIW, I's switch to INDEX-MATCH. A reliable workhorse:

    =INDEX(Table1[[James Smith]:[Ellen Jones]],MATCH(Summary!$A2,Table1[[Column1]:[Column1]],0),MATCH(Summary!B$1,Table1[[#Headers],[James Smith]:[Ellen Jones]],0))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-21-2017
    Location
    Hong Kong
    MS-Off Ver
    2013
    Posts
    21

    Re: HLOOKUP with nested MATCH function

    Thanks again!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: HLOOKUP with nested MATCH function

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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] MATCH and INDEX function instead NESTED IF function
    By geniusufo007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-12-2018, 01:07 PM
  2. Hlookup Match function not working
    By missmea2005 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-05-2018, 11:20 AM
  3. IF Function with a nested OR and MATCH
    By calli in forum Excel General
    Replies: 2
    Last Post: 04-18-2017, 08:11 PM
  4. Nested HLOOKUP Function
    By mgoldman0998 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2015, 05:03 PM
  5. nested MATCH function within the INDEX function
    By thechoosenonesdream in forum Excel General
    Replies: 4
    Last Post: 10-25-2012, 03:55 PM
  6. Replace Lookup function with vlookup, hlookup, match
    By gileadb in forum Excel General
    Replies: 1
    Last Post: 11-08-2011, 09:35 PM
  7. [SOLVED] Offset function with nested match function not finding host ss.
    By MKunert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 06:50 PM

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