+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Use Cell Value as Worksheet Name in formula

  1. #1
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Use Cell Value as Worksheet Name in formula

    I have a Workbook that collects monthly data on seperate sheets(January!, February!...)

    There is a summary sheet that has formula:
    =countifs(January!a1:a1000,"Strategy*",January!b1:b100,"Appt*")

    @A1 in the summary the month can be entered. i.e. January, February.... (it is a list-so syntax is not a problem)

    I would like the formaula to be:
    =countifs(Text(A1,"")!A1:A1000,"Strategy*",Text(A1,"")!B1:B1000,"Appt*")

    So that the month can change in cell A1 and that will cause the formula to look at the corresponding worksheet.

    Thanks for any help.
    Last edited by CRIMEDOG; 09-30-2010 at 02:55 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Use Cell Value as Worksheet Name in formula

    Try this:

    =COUNTIFS(INDIRECT(A1 & "!A1:A1000"), "Strategy*", INDIRECT(A1 & "!B1:B1000"), "Appt*")
    Last edited by JBeaucaire; 09-30-2010 at 01:39 PM. Reason: corrected error in formula
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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