+ Reply to Thread
Results 1 to 12 of 12

Index match with named ranges

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    58

    Index match with named ranges

    Is it possible to use index match with named ranges? I keep getting #value! or #N/A.

    Please Login or Register  to view this content.
    My named ranges are: Data_Table, Year_Range, Column_Range.

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

    Re: Index match with named ranges

    Yes, but the ranges must be of the same dimensions and the data in them must match your lookup values exactly.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

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

    Re: Index match with named ranges

    Will you please attach a sample Excel workbook? Please don't attach a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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

  4. #4
    Registered User
    Join Date
    02-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: Index match with named ranges

    What do you mean of the same dimensions?

    The look up cell is titled the same as one of the cells in the look up range.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,029

    Re: Index match with named ranges

    OK - so the INDEX array will match the ROW array in the number of cells it is deep, and the COLUMN array with the number of cells it is wide.

    The lookup cells may look the same, but are they? Is one test and the other a number? Does one have leading or trailing spaces?

    Upload the workbook as Glenn suggested and we'll take a look.

  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 2406
    Posts
    44,662

    Re: Index match with named ranges

    If the first MATCH function is looking at 10 rows... and the second match function is looking at 3 columns, then the INDEX part must be looking at 10 rows by 3 columns = 30 cells.

  7. #7
    Registered User
    Join Date
    02-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: Index match with named ranges

    I've uploaded my example spread. I hope this helps to clarify things!
    Attached Files Attached Files

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

    Re: Index match with named ranges

    You can't call named ranges like that. use this instead:
    =INDEX(INDIRECT(CONCATENATE(C16 & "_" & "Data")),MATCH(B20,INDIRECT(CONCATENATE(C16&"_"&"year")),0),MATCH(C17,INDIRECT(CONCATENATE(C16&"_"&B17)),0))

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

    Re: Index match with named ranges

    ... and you don't need CONCATENATE. Just use:

    =INDEX(INDIRECT(C16 & "_" & "Data"),MATCH(B20,INDIRECT(C16&"_"&"year"),0),MATCH(C17,INDIRECT(C16&"_"&B17),0))

  10. #10
    Registered User
    Join Date
    02-10-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: Index match with named ranges

    Ohhhhh. So the problem was using concatenate instead of indirect...

    Thanks for the help! It works now!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,029

    Re: Index match with named ranges

    Quote Originally Posted by russwongg View Post
    Ohhhhh. So the problem was using concatenate instead of indirect...

    Thanks for the help! It works now!
    No, the problem was not using INDIRECT - you still need either CONCATENATE or & (both do the same job - & is quicker and easier, and is available in your version of Excel).

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,029

    Re: Index match with named ranges

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

+ 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] index match function using a table and named ranges
    By jugdish in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2015, 03:59 PM
  2. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  3. #REF! Error in INDEX/MATCH Equation with Named Ranges
    By shawnvon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2015, 08:24 PM
  4. looking up specific cells utilizing named ranges, index/match in VBA?
    By hlep in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2012, 09:44 AM
  5. Replies: 2
    Last Post: 01-10-2011, 01:15 AM
  6. Utilizing Match & Index with two named ranges
    By purdue7997 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2009, 04:55 PM
  7. Named Ranges and INDEX/MATCH
    By jasoncw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2007, 09:33 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