+ Reply to Thread
Results 1 to 4 of 4

Using a cells contents as part of an address in a function

  1. #1
    Registered User
    Join Date
    10-07-2007
    Posts
    2

    Using a cells contents as part of an address in a function

    Hello,
    I've been banging my head against a wall trying to do a seemingly simple task in excel. Basically I have a workbook with many worksheets (sequentially named "ARC001", "ARC002, "ARC003", etc). On each worksheet in cell C2 is the title of the worksheet.

    I'd like to create a "table of contents" worksheet that would pull the title from each worksheet (cell C2).

    To do this by hand, I understand I can manually type
    Please Login or Register  to view this content.
    in the first cell and then
    Please Login or Register  to view this content.
    into the next cell, and so on, but I have almost 75 worksheets and I am of the belief that there must be a way to do this via code.

    I tried using the auto-fill feature of excel, but it keeps trying to increment the "C2" portion of my address rather than the ARC### portion.

    It's easy to use auto-fill to create a column of all the worksheet names (see my image below, column A) so hopefully that can be of help.

    Thank you for your help!
    Attached Images Attached Images

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    In A1 and autofilll down: ARC001

    In B2 and copy down =INDIRECT("'" & A1 & "'!C2")

  3. #3
    Registered User
    Join Date
    10-07-2007
    Posts
    2
    Cheers! That did the trick!

    Thank you so much for your help. That function was just what I was looking for.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    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)

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