+ Reply to Thread
Results 1 to 8 of 8

How to insert INDIRECT within INDEX & MATCH functions

  1. #1
    Registered User
    Join Date
    05-12-2019
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2016
    Posts
    15

    How to insert INDIRECT within INDEX & MATCH functions

    Hi,
    I need to find a dynamically changing sheet name and then use in in an INDEX + MATCH function combination. I managed to find the sheet name by use of the following formula =INDIRECT("Plan'"&"!B13") for a cell B13 in sheet "Plan" that contains it, but cannot determine the proper syntax to insert this expression into the following one =INDEX('sheet name'!E22:E41,MATCH(A13,'sheet name'!B22:B41,0)) where 'sheet name' is the result of the previous INDIRECT function. Any ideas will be greatly appreciated.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: How to insert INDIRECT within INDEX & MATCH functions

    Do you need this formula to be able to be copied to multiple locations, or is it one formula in one cell? This version is not copyable, because the cell ranges are in quotes:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-12-2019
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2016
    Posts
    15

    Re: How to insert INDIRECT within INDEX & MATCH functions

    Quote Originally Posted by 6StringJazzer View Post
    Do you need this formula to be able to be copied to multiple locations, or is it one formula in one cell? This version is not copyable, because the cell ranges are in quotes:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you, but doesn't seem to work. Can't find how to attach my sample file, maybe permission is needed.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: How to insert INDIRECT within INDEX & MATCH functions

    No special permission is needed, but the paper clip icon does not work. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.

  5. #5
    Registered User
    Join Date
    05-12-2019
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2016
    Posts
    15

    Re: How to insert INDIRECT within INDEX & MATCH functions

    Quote Originally Posted by 6StringJazzer View Post
    No special permission is needed, but the paper clip icon does not work. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Thanks, attached is the sample file
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: How to insert INDIRECT within INDEX & MATCH functions

    Try pasting the following into cell H13: =INDEX(INDIRECT("'"&B13&"'!E22:E41"),MATCH(A13,INDIRECT("'"&B13&"'!B22:B41"),0))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    05-12-2019
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2016
    Posts
    15

    Re: How to insert INDIRECT within INDEX & MATCH functions

    Quote Originally Posted by JeteMc View Post
    Try pasting the following into cell H13: =INDEX(INDIRECT("'"&B13&"'!E22:E41"),MATCH(A13,INDIRECT("'"&B13&"'!B22:B41"),0))
    Let us know if you have any questions.
    Solved my issue! Thanks

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: How to insert INDIRECT within INDEX & MATCH functions

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Combining INDEX & INDIRECT Functions
    By FlashGordy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-23-2019, 11:36 AM
  2. Replies: 8
    Last Post: 09-30-2018, 12:53 PM
  3. Replies: 1
    Last Post: 09-21-2017, 05:35 PM
  4. Where do we combine INDEX and INDIRECT functions?
    By BIJALRADIA in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-01-2013, 05:48 AM
  5. Use INDEX and INDIRECT functions combined.
    By maancalo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2012, 02:43 PM
  6. Combine INDEX+MATCH functions with INDIRECT formula
    By ABSTRAKTUS in forum Excel General
    Replies: 4
    Last Post: 04-12-2011, 04:16 PM
  7. Using Index, Indirect and Rand functions.
    By bolger in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2007, 06:09 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