worksheet referencing

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
250
Office Version
  1. 365
Platform
  1. Windows
I have a formula that changes based on the year.
Every year I have to go into my worksheets and change all my formulas to reflect my current year because I open a new worksheet.

A formula example is
=SUM('2024'!B4:B8)

Is it possible to have a formula for the '2024' to reflect the current year so I don't have to change so many formulas?

Thank you
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Excel Formula:
=SUM(INDIRECT(YEAR(TODAY())&"!B4:B8"))

But be aware that INDIRECT is a volatile function so if used a lot can impact the sheet's performance.
 
Upvote 0
Solution
Excel Formula:
=SUM(INDIRECT(YEAR(TODAY())&"!B4:B8"))

But be aware that INDIRECT is a volatile function so if used a lot can impact the sheet's performance.

One of the formulas I'm using is

Excel Formula:
=IF(SUMIFS((INDIRECT(YEAR(TODAY())&"!B:B")),(INDIRECT(YEAR(TODAY())&"!G:G")),(CONCAT((TEXT(C$4,"DD-")),(TEXT($C$2,"MMM-YY")))),(INDIRECT(YEAR(TODAY())&"!N:N")),$K5)=0,"",SUMIFS((INDIRECT(YEAR(TODAY())&"!B:B")),(INDIRECT(YEAR(TODAY())&"!G:G")),(CONCAT((TEXT(C$4,"DD-")),(TEXT($C$2,"MMM-YY")))),(INDIRECT(YEAR(TODAY())&"!N:N")),$K5))

Problem is I have it about 800 times in a worksheet
Is is going to slow down the worksheet?
 
Upvote 0
Problem is I have it about 800 times in a worksheet
Is is going to slow down the worksheet?
Probably not, but it partially depends on your system resources. Best way to find out is to try it. :biggrin:
 
Upvote 0
One of the formulas I'm using is

Excel Formula:
=IF(SUMIFS((INDIRECT(YEAR(TODAY())&"!B:B")),(INDIRECT(YEAR(TODAY())&"!G:G")),(CONCAT((TEXT(C$4,"DD-")),(TEXT($C$2,"MMM-YY")))),(INDIRECT(YEAR(TODAY())&"!N:N")),$K5)=0,"",SUMIFS((INDIRECT(YEAR(TODAY())&"!B:B")),(INDIRECT(YEAR(TODAY())&"!G:G")),(CONCAT((TEXT(C$4,"DD-")),(TEXT($C$2,"MMM-YY")))),(INDIRECT(YEAR(TODAY())&"!N:N")),$K5))

Problem is I have it about 800 times in a worksheet
Is is going to slow down the worksheet?
Are you sure you want to do this ?
Typically you work on data in arrears. By putting Today() in your formulas on 1 Jan or whatever working day you are back at work everything is going to have clicked over to the new year.
 
Upvote 0
Will this formula turn over in the next year? or will I have to update it?
You will not have to update the formula. As soon as you open the workbook next year it will be looking for a sheet called '2025'.
 
Upvote 0
Ok thank you so much. It scared me for a second, I simulated the date for next year and it didnt pick up the info.
 
Upvote 0
I manipulated the date on this

Project tracker (1)1111.xlsx
WXYZAA
3
4Time Entry
5
6
7
8Year2024
9
10Month3
11
12Day 11
13
14Date2024-03-31
15
Current Month
Cell Formulas
RangeFormula
Z8Z8=YEAR(Z14)
Z10Z10=MONTH(Z14)
Z14Z14=TODAY()
 
Upvote 0

Forum statistics

Threads
1,215,360
Messages
6,124,493
Members
449,166
Latest member
hokjock

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top