+ Reply to Thread
Results 1 to 7 of 7

Help with Table arrays in HLOOKUP FUNCTION

  1. #1
    Registered User
    Join Date
    05-23-2017
    Location
    Johannesburg
    MS-Off Ver
    Office365
    Posts
    3

    Help with Table arrays in HLOOKUP FUNCTION

    Hi guys!

    I need help with the HLOOKUP function. I've attached an example of what I'm working with.

    Basically - I want to populate the table and I need to use the HLOOKUP function to do so.
    The Tables I refer to below are tables I have named elsewhere in my workbook.

    If the HLOOKUP function is in the row labelled 11 I want to use Table11 as my array.
    If it is in the row labelled 12 I want to use Table12 as my array.
    If it is in the row labeled A I want to use TableA as my array.

    I know I could manually type in the Table names but my final matrix is huge and I cannot do this for every row.
    Basically I want to figure out a way that I can write my table array as Table-"name of row"- and then use the autofill to complete the matrix for me

    HELP!!

    excel help.png

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Help with Table arrays in HLOOKUP FUNCTION

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    05-23-2017
    Location
    Johannesburg
    MS-Off Ver
    Office365
    Posts
    3

    Re: Help with Table arrays in HLOOKUP FUNCTION

    Hi! Thanks so much for a prompt reply. I have uploaded an example workbook
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Help with Table arrays in HLOOKUP FUNCTION

    In B8

    =IFERROR(HLOOKUP(B$7,INDIRECT("TABLE" &$A8),2,FALSE),"")

    Copy across and down

  5. #5
    Registered User
    Join Date
    05-23-2017
    Location
    Johannesburg
    MS-Off Ver
    Office365
    Posts
    3

    Re: Help with Table arrays in HLOOKUP FUNCTION

    Wow thanks!!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Help with Table arrays in HLOOKUP FUNCTION

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

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Help with Table arrays in HLOOKUP FUNCTION

    Or Try

    B8
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark 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] Hlookup function
    By getafixkwik in forum Excel General
    Replies: 9
    Last Post: 05-19-2017, 04:01 AM
  2. HLOOKUP Problems with second table lookup
    By FatPie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2015, 11:29 AM
  3. Vlookup, Hlookup, pivot table help
    By bbor55 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2010, 05:47 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. Replies: 7
    Last Post: 03-26-2009, 12:13 PM
  6. Table Array within hlookup not working
    By mattted in forum Excel General
    Replies: 3
    Last Post: 03-03-2009, 07:09 PM
  7. [SOLVED] HLOOKUP last match in a table
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2006, 05:35 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