+ Reply to Thread
Results 1 to 3 of 3

can I use CONCAT to name a table or array in a VLOOKUP formula?

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    can I use CONCAT to name a table or array in a VLOOKUP formula?

    I've attached a sample workbook which has several tables (one table per worksheet). The "ALL" worksheet has a column of names in column Q which I want to use in VLOOKUP formulas, to identify which table (or array) referred to.

    Each of the other worksheets has a name matching those in column Q.

    An example worksheet name (also seen in column Q) is AlpSie. An example table might be AlpSie!$A2:$F286.

    I've tried using CONCAT in a VLOOKUP formula to identify the table name. Thus, if cell Q4 in the "ALL" worksheet is AlpSie, I've tried

    Please Login or Register  to view this content.
    This doesn't work. I've tried other variations, moving the quotation marks around, or separating the "!" into its own txt string, but nothing so far works.

    Perhaps there's an entirely different, more efficient solution to this problem which uses MATCH or some other formula? Any thoughts? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,791

    Re: can I use CONCAT to name a table or array in a VLOOKUP formula?

    It's the INDIRECT function you need:

    =VLOOKUP(D4+1,(INDIRECT(Q4&"!A2:F286")),6,FALSE)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: can I use CONCAT to name a table or array in a VLOOKUP formula?

    Thank you Ali!

+ 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. Vlookup with formula inside table array
    By scarlton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2017, 05:20 PM
  2. [SOLVED] need formula of vlookup through lookup value of table array contains alpha numeric
    By johnlara in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2015, 10:47 AM
  3. Help With VLookup Formula - Table Array
    By kh08 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2014, 10:27 AM
  4. [SOLVED] Vlookup Formula that combines two different Look Up values in the same table array
    By ensmith in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-24-2013, 11:05 PM
  5. VLOOKUP - reference an external table array using formula
    By ktcanuck in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-31-2012, 12:27 PM
  6. help defining the array table by formula in vlookup funkcion
    By slastanrado in forum Excel General
    Replies: 2
    Last Post: 10-10-2011, 02:49 AM
  7. Replies: 1
    Last Post: 05-12-2009, 03:40 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