+ Reply to Thread
Results 1 to 4 of 4

How do I use a name when the name is written in a cell?

  1. #1
    Registered User
    Join Date
    07-31-2014
    Location
    Norway
    MS-Off Ver
    2013
    Posts
    7

    How do I use a name when the name is written in a cell?

    Hi!

    I have many tables named TableA, TableB, TableC and so on.
    I need to get one value from each of these tables and put it in its own table.
    So I was thinking of using the Index function like this:
    =INDEX(TableA,3,4)

    But since I am going to do this with many Tables it would have been great if it was possible to have two columns and do something like this:

    Table Value
    A =INDEX("Table" & A2,3,4
    B =INDEX("Table" & A3,3,4)
    C =INDEX("Table" & A4,3,4)
    D =INDEX("Table" & A5,3,4)
    E =INDEX("Table" & A6,3,4)


    Unfortunately Excel doesn't understand what I mean by "Table" & A2 and so on..
    Is there some way to do this?

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How do I use a name when the name is written in a cell?

    Try

    =INDEX(INDIRECT("Table"&A2),3,4)

  3. #3
    Registered User
    Join Date
    07-31-2014
    Location
    Norway
    MS-Off Ver
    2013
    Posts
    7

    Re: How do I use a name when the name is written in a cell?

    AAH! Perfect! Thanks!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How do I use a name when the name is written in a cell?

    You're welcome.

+ 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] Run code dependant on what is written in a cell
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-04-2014, 10:06 AM
  2. Value Not Written on the intended Cell
    By love_sick7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2014, 08:17 AM
  3. [SOLVED] How to address copy destination cell in VBA if cell adress is written as a text elswhere
    By flyman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2013, 05:29 PM
  4. [SOLVED] How to disallow Particular text to be written in a cell?
    By caabdul in forum Excel General
    Replies: 4
    Last Post: 11-14-2012, 08:50 AM
  5. how can I check if there is text written in a cell?
    By hendersson in forum Excel General
    Replies: 4
    Last Post: 10-12-2005, 09:38 AM

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