+ Reply to Thread
Results 1 to 4 of 4

sheet name in function

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    New Delhi
    MS-Off Ver
    Excel 2007
    Posts
    24

    sheet name in function

    Is there any method available by which i can alter sheetname in a formula depending upon some condition
    e.g. Say i have three teams to control. Data regarding each team is available in sheet1 to 3 respectively.
    In sheet 4 i have to use value of sheet1 or sheet2 or sheet3 depending upon some criteria in some other cell of sheet4 itself.

    Specific example
    Cell A1 of each of sheet 1 to sheet 3 has team leader name.
    Cell A1 in sheet 4 can have value 1 to 3
    I want team leader name in cell B1 (of sheet 4) of team number mentioned in cell A1 of sheet 4.

    thanks.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: sheet name in function

    Assuming your sheets are named as "Sheet1, Sheet2, Sheet3" otherwise you can modify to suit your team names.

    =INDIRECT("Sheet"&A1&"!A1")
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    New Delhi
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: sheet name in function

    Wonderful

    thanks

    Quote Originally Posted by DGagnon View Post
    Assuming your sheets are named as "Sheet1, Sheet2, Sheet3" otherwise you can modify to suit your team names.

    =INDIRECT("Sheet"&A1&"!A1")

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: sheet name in function

    Please do not quote (see the forum rules)



+ 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