+ Reply to Thread
Results 1 to 11 of 11

Named range in Index & Match

  1. #1
    Registered User
    Join Date
    01-25-2016
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    31

    Named range in Index & Match

    Hi,

    I've looked all over the internet and this website for this issue, but can't find an adequate answer. Does anyone know how to have a reference to a cell that contains the name of the named range that I want to use in my Index & match formula? So Index(NamedRange,match(a value, a random list,0)) is working, but I want to have a cell in the formula instead of NamedRange. INDIRECT didn't work and I have no other clues.. Thanks

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Named range in Index & Match

    Indirect should work..

    Can you attach your sample workbook?
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Doha, State of Qatar
    MS-Off Ver
    excel 2003, 2007, 2010, 2016
    Posts
    124

    Re: Named range in Index & Match

    hi edward_glyver,
    see i have just put the formulla in cell d9 =INDEX(INDIRECT("a1:a9",TRUE),MATCH(C2,A1:A9,0))
    keeping the cell a1:a9 fill with some number, and it is working fine.
    Regards,
    abdul

  4. #4
    Registered User
    Join Date
    01-25-2016
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    31

    Re: Named range in Index & Match

    Quote Originally Posted by NeedForExcel View Post
    Indirect should work..

    Can you attach your sample workbook?
    The attachment function of this website is not working, how would you recommend I share it with you?

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Named range in Index & Match

    Hi,

    The Paper Clip isn't working.

    You can click on go advanced > Scroll a bit down & click on Manage Attachments > Chose File > Upload & then close the window > Post Reply.

  6. #6
    Registered User
    Join Date
    01-25-2016
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    31

    Re: Named range in Index & Match

    Thanks, please see attached - it's just a basic experimental workbook
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Named range in Index & Match

    How is your named range defined?

    If it doesn't evaluate correctly for any reason then it will affect any formula that try to use it.

    If it is defined correctly then you should be able to use =INDEX(INDIRECT(A1),etc... where the name of the named range to use is entered into A1.

    edit:-

    Look at E1 in your example, the cell is formatted to show "Year1" but the value in the cell is just "1" so INDIRECT(E1) is looking for a non existent range named "1"
    Last edited by jason.b75; 04-29-2016 at 08:02 AM.

  8. #8
    Registered User
    Join Date
    01-25-2016
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    31

    Re: Named range in Index & Match

    My named range is Year1. When I replace INDIRECT(E4) by Year1, it works. Otherwise not..

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Named range in Index & Match

    Try this one,

    =INDEX(INDIRECT(SUBSTITUTE(D19," ","")),MATCH(D20,D5:D16,0))

    See edit to my previous reply for reason yours doesn't work correctly.

    Just to add, you don't need so many functions for the task you're trying. While it might be more practical with other data sets, you could just format D19 and D20 in the same way as E4, then use

    =INDEX(E5:G16,D20,D19)

    No named ranges or indirect / match functions needed, just index in the simplest form.
    Last edited by jason.b75; 04-29-2016 at 08:10 AM.

  10. #10
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Named range in Index & Match

    But why indirect.. You can do it using Index & Match. Indirect is a Volatile function.

    =INDEX(E5:G16,MATCH(D20,D5:D16,0),MATCH(D19,E4:G4,0))

    Just change the input in cell D19 to just 1 instead of Year 1, or change column headers on the 4th row to match cell D19

  11. #11
    Registered User
    Join Date
    01-25-2016
    Location
    London, UK
    MS-Off Ver
    2016
    Posts
    31

    Re: Named range in Index & Match

    Quote Originally Posted by jason.b75 View Post
    How is your named range defined?

    If it doesn't evaluate correctly for any reason then it will affect any formula that try to use it.

    If it is defined correctly then you should be able to use =INDEX(INDIRECT(A1),etc... where the name of the named range to use is entered into A1.

    edit:-

    Look at E1 in your example, the cell is formatted to show "Year1" but the value in the cell is just "1" so INDIRECT(E1) is looking for a non existent range named "1"
    Great, 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 VLOOKUP Named Range
    By overbomb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2015, 12:56 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. Dynamic Named Range + Index/Match Returning Circular Reference
    By jennarenae in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2014, 06:23 PM
  4. [SOLVED] Reference to named range to be used in index match formula!! Help Please!!
    By Optimum in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-24-2013, 06:54 AM
  5. Named range lookup using Index/Indirect/Match Function calls in Macro
    By sgopan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2013, 07:51 PM
  6. Cancel posting
    By Richard3 in forum Excel General
    Replies: 1
    Last Post: 02-24-2012, 12:45 PM
  7. Named range lookup using Index and match
    By Sirrob01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-01-2007, 11:15 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