+ Reply to Thread
Results 1 to 4 of 4

Copy Value of cell to call sheet name

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-30-2008
    Location
    PSL, FL
    Posts
    271

    Copy Value of cell to call sheet name

    Calling Worksheet name from Cell name

    ok guys I got this formula

    =SUM('Session 1'!$D$2:$D$9999)

    On my summary page

    however I need to be able to change the "Session 1" with my adjacent cell

    for example my summary page has

    Session 1 and here is where I got that formula returning my profit
    Session 2
    and so on

    I tried to drag it down, but I couldn't get the 1 to go to 2 and 3 and 4 etc?

    Also part #2 of the question I put 9999 since I do not think my sheet will ever get that long. is their an easier formula to add up as many rows that have data?

    Thanks
    Matt

  2. #2
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Copy Value of cell to call sheet name

    suppose the sheet name:

    Session 1 is in cell A2
    Session 2 is in cell A3 and so on

    try it

    =SUM(INDIRECT("'"&A2&"'!$D$2:$D$9999")) and copy down

    if you dont want to mention 9999 then use

    =SUM(INDIRECT("'"&A2&"'!$D$2"):INDEX(INDIRECT("'"&A2&"'!D:D"),MATCH(9.99999999999999E+307,INDIRECT("'"&A2&"'!D:D")))) and copy down


    If your problem is not solved, upload a sample workbook with sample data and your desired results

    In order to attach a file Click the Go Advanced button, and click on the Manage Attachments button
    Last edited by Azam Ali; 08-03-2011 at 02:26 AM.
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  3. #3
    Forum Contributor
    Join Date
    06-30-2008
    Location
    PSL, FL
    Posts
    271

    Re: Copy Value of cell to call sheet name

    Ali

    One more question

    now I want to add

    the name of my workbook is is F2 and I know the extension is always Xlsx

    to

    =SUM(INDIRECT("'"&A2&"'!$D$2:$D$9999"))

  4. #4
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Re: Copy Value of cell to call sheet name

    =SUM(INDIRECT("'"&F2&"'!$D$2:$D$9999"))

    there is no need to mention file extension if both sheets are in same workbook

+ 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