+ Reply to Thread
Results 1 to 4 of 4

Reference a worksheet name as a cell value in another worksheet

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Reference a worksheet name as a cell value in another worksheet

    Hi.

    I have a code

    Please Login or Register  to view this content.
    The number 2429 = Cell C3 in Worksheet("BAT")

    Is there a way that I can reference it without directly using the number 2429?

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Reference a worksheet name as a cell value in another worksheet

    Hi tantcu,

    Is this what you're after:

    Please Login or Register  to view this content.
    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Reference a worksheet name as a cell value in another worksheet

    Thank you so much Robert. You don't mind if I can ask one more question. Instead of Vba, if I have a formula like this : =SUMIF('2429'!$C$14:$C$363,BAT!$E48,'2429'!$F$14:$F$364). Because it has to reference a sheet "2429". This sheet populate based on cell C3 of worksheet BAT. Everytime C3 is changing the sheet will disappear and populate another sheet. I want this formula apply to all the sheet as possible. Is there a way that I can reference the number 2429 in the formula above to something else so I don't have to worry about changing the sheet. Thank you.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Reference a worksheet name as a cell value in another worksheet

    Try this:

    =SUMIF(INDIRECT("'"&BAT!C3&"'!$C$14:$C$363"),BAT!E48,INDIRECT("'"&BAT!C3&"'!$F$14:$F$363"))

    Robert

+ 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