M
mike
afternoon all,
and merry christmas and happy new year to you!
ok, so here's the situation:
i have a workbook its records dates and amounts in two columns plus other
details in the remaining columns.
i have named one sheet "current year" where all items are entered for the
current year.
i wrote a macro which copies all the data to a new sheet called
(year-1)Archived, where year minus one is a function which looks at the year
today and names the sheet the previous year. the macro then clears the
"current year" sheet enabling it to be used again.
i now need to create an MI sheet, however, rather than creating lots of
sheets for each period, i would like the user to be able to enter a year in
two cells of this sheet, eg. 2004 and 2005, then the sheet would update all
worksheet functions to search the archived sheets for those specific years.
it needs to search worksheet functions because i have used simple if
statements to form MI and graphs.
therefore i am looking for some suggestions as to how my if statements could
be made into a macro eliminating the cell values currently listed, and
whether it is possible to update the worksheet function to a specific
worksheet location from the value in another cell.
here is some examples of what im currently using:
=IF('2004 Archived'!A5>$C$44,'2004 Archived'!I5,0)
this if function looks to see if the value in A5 is greater than a year ago
today, and if it then show the amount given in I5, else show 0.
=IF('2004 Archived'!J5=1,1,0)
this function looks in J5 to see if the value is 1, which is a
classification value, and if it is then the cell shows 1.
i have then added the range where this formula appears to show how many
occurrences of classification 1 there were in the given year.
i look forward to your responses
and thank you in advance for your time.
mike
and merry christmas and happy new year to you!
ok, so here's the situation:
i have a workbook its records dates and amounts in two columns plus other
details in the remaining columns.
i have named one sheet "current year" where all items are entered for the
current year.
i wrote a macro which copies all the data to a new sheet called
(year-1)Archived, where year minus one is a function which looks at the year
today and names the sheet the previous year. the macro then clears the
"current year" sheet enabling it to be used again.
i now need to create an MI sheet, however, rather than creating lots of
sheets for each period, i would like the user to be able to enter a year in
two cells of this sheet, eg. 2004 and 2005, then the sheet would update all
worksheet functions to search the archived sheets for those specific years.
it needs to search worksheet functions because i have used simple if
statements to form MI and graphs.
therefore i am looking for some suggestions as to how my if statements could
be made into a macro eliminating the cell values currently listed, and
whether it is possible to update the worksheet function to a specific
worksheet location from the value in another cell.
here is some examples of what im currently using:
=IF('2004 Archived'!A5>$C$44,'2004 Archived'!I5,0)
this if function looks to see if the value in A5 is greater than a year ago
today, and if it then show the amount given in I5, else show 0.
=IF('2004 Archived'!J5=1,1,0)
this function looks in J5 to see if the value is 1, which is a
classification value, and if it is then the cell shows 1.
i have then added the range where this formula appears to show how many
occurrences of classification 1 there were in the given year.
i look forward to your responses
and thank you in advance for your time.
mike