View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
John John is offline
external usenet poster
 
Posts: 2,069
Default Referencing a Sheet based on the Month

Hello.

Is there a way to tell Excel to reference a sheet in a formula based on a
variable like the month?

Currently I am working on a project where new data is added each month and
then is calculated on a summery sheet. Now every month the summery needs to
be updated to reflect the new month. So I want to be able to add the new
sheets to the workbook, then tell Excel to recalculate the data using the
most current month. Here is one of my calculations from the summery sheet for
example.

=COUNTIF('Feb-08 Hires'!$J:$J,"New York")

What I am trying to do is figure a way to have Excel change the calculation
but base it off of the next month once that sheet is added. Basicly tell it
to change the "Feb-08" part and reference the next sheet once its added,
which would be "Mar-08". Right now I have to go in and change every formula
by hand.

I have no problem renaming the sheets if needed. Using Excel 2003.