+ Reply to Thread
Results 1 to 8 of 8

using defined array names from a cell containing text of just the array name

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    5

    using defined array names from a cell containing text of just the array name

    hi i was wondering if there was a way to use cells containing just text of the name of an array (previously defined by me) as the array to look in, within a vlookup?

    ex. array name = cats_1
    text within A1= cats_1

  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: using defined array names from a cell containing text of just the array name

    Is this in VBA or on a worksheet?

    If it's a worksheet you could use INDIRECT(A1).

  3. #3
    Registered User
    Join Date
    10-26-2012
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: using defined array names from a cell containing text of just the array name

    just a worksheet.

    thanks for the reply!

  4. #4
    Registered User
    Join Date
    10-26-2012
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: using defined array names from a cell containing text of just the array name

    how would i use the indirect function? i dont get the false/r1c1 or true/a1 part?

  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: using defined array names from a cell containing text of just the array name

    What exactly do you mean by 'defined array names'?

  6. #6
    Registered User
    Join Date
    10-26-2012
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: using defined array names from a cell containing text of just the array name

    an array range that ive defined with a name?


    ex. cats_1 = A1:A19

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

    Re: using defined array names from a cell containing text of just the array name

    I don't know why you've mentioned A1, R1C1, TRUE, FALSE.

    You can just use INDIRECT, you don't need anything else.

  8. #8
    Registered User
    Join Date
    10-26-2012
    Location
    los angeles, ca
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: using defined array names from a cell containing text of just the array name

    oh ok, thanks.

    im having a cell reference problem now... i have the pivot table of data copied over to the same worksheet but i cant seem to get the reference right in a vlookup.

    ex. named range = a1:a19 = cats_1
    B1=cats_1

    =vlookup(C1,indirect(B1),2,false)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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