+ Reply to Thread
Results 1 to 5 of 5

Referencing Named Arrays Using Cell Value?

  1. #1
    Registered User
    Join Date
    03-28-2010
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    57

    Referencing Named Arrays Using Cell Value?

    Hi Fellas,

    Quick one for you - I've named a bunch of 1x100 arrays and am using them to index match data across them.

    For example: I Use: Index(Array1,match(a1,Array1,0),1) to search the A1 value within Array and return the relative location of the variable in A1.

    Is there away for me to continue to Array1 but instead of typing in "Array1" to be able to link it a cell, say B1, which I can modify so the array can be called Array1, Array2, ArrayN?

    1.) I basically want to be able to type in the name of the array and search across. Will the address function allow me to do this? How would I go about doing this?

    2.) Is the computationally efficient? Are there more efficient ways of doing this without going all fancy schmancy VBA.

    Thanks,

    Larry

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Referencing Named Arrays Using Cell Value?

    Larry

    Try INDIRECT.

    =INDEX(INDIRECT(B1),MATCH(A1,INDIRECT(B1),0),1)

    As for efficiency, really depends what you are trying to do.
    If posting code please use code tags, see here.

  3. #3
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: Referencing Named Arrays Using Cell Value?

    Just to mention: INDIRECT works for named ranges, but not for arrays defined directly in Name Manager.

  4. #4
    Registered User
    Join Date
    03-28-2010
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    57

    Re: Referencing Named Arrays Using Cell Value?

    Thanks Root -

    Is there away to reference an array defined directly in Name Manager? Thats the type of array I have.

    Best,

    Larry

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Referencing Named Arrays Using Cell Value?

    Larry

    What exactly are these 'arrays' you have and how are they defined?

+ 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. Referencing a cell from a workbook that is named by date
    By travis.cook21 in forum Excel General
    Replies: 3
    Last Post: 08-06-2015, 04:23 PM
  2. Referencing a named cell
    By monraf in forum Excel General
    Replies: 1
    Last Post: 07-30-2014, 12:50 AM
  3. Referencing a single cell in a named range in a formula
    By MacW in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-10-2012, 10:38 AM
  4. Referencing a named range, from a cell
    By StevenAFC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2008, 07:37 AM
  5. Referencing Named Cell Ranges
    By K_REY_C in forum Excel General
    Replies: 6
    Last Post: 03-01-2007, 01:42 AM
  6. Referencing cell in Named Range in Function VS Formula
    By Nyq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2006, 03:56 PM
  7. Referencing a cell within a named range
    By ursamtl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2005, 10:44 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