sheet name into cell

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
250
Office Version
  1. 365
Platform
  1. Windows
My sheet names are years (2024, 2025, 2026....)
In column A, I would like to put the date starting with 1 Jan and use the sheet name to make the year.
I would like this to continue all the way to 31 Dec (sheet name)

Is this possible?
 
Here's the first result from a Google search.

You must refresh the calculations every time you're on a certain sheet to get the correct year. Otherwise, the year will show whatever the last time you refresh the calculation.
For example, if I ran the above formula for "2024", if I go to "2025". All the dates will show "2024", I must refresh to get 2025. Now if I go back to 2024, it says 2025.

In short, not a good idea because it can have unexpected consequences.
good to know,,,

I have changed the way I want it due to volatility,
but now I'm having a problem with the date
The year doesn't match up

Project tracker (1)1111.xlsx
PQRS
6January 1, 1905112025
2025
Cell Formulas
RangeFormula
P6P6=DATE(YEAR(S6),MONTH(Q6),DAY(R6))
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
The function YEAR(),MONTH(), DAY() are used to extract from a date series. What you have is not a date series, so those are unnecessary.

JOEE1979.xlsx
PQRS
61/1/25112025
Sheet3
Cell Formulas
RangeFormula
P6P6=DATE(S6,R6,Q6)
 
Upvote 0
Solution
It worked, but I have 1 more thing to ask, not sure if I'm supposed to open a new disscussion or not.

I have this formula to continue my tracking from the previous year
Excel Formula:
=SUMIFS('2024'!B:B,'2024'!J:J,@G:G,'2024'!N:N,@N:N)
I have tried to change it to this
Excel Formula:
=SUMIFS('(TEXT(A1, "0000")-1)'!B:B,'(TEXT(A1, "0000")-1)'!J:J,@G:G,'(TEXT(A1, "0000")-1)'!N:N,@N:N)
"A1" is the current year, and I'm hoping to subtract 1 from that to get the previous year worksheet name

As I mentioned before, I would like to automate the worksheet as I go along the years with minimal changes
 
Upvote 0
It worked, but I have 1 more thing to ask, not sure if I'm supposed to open a new disscussion or not.

I have this formula to continue my tracking from the previous year
Excel Formula:
=SUMIFS('2024'!B:B,'2024'!J:J,@G:G,'2024'!N:N,@N:N)
I have tried to change it to this
Excel Formula:
=SUMIFS('(TEXT(A1, "0000")-1)'!B:B,'(TEXT(A1, "0000")-1)'!J:J,@G:G,'(TEXT(A1, "0000")-1)'!N:N,@N:N)
"A1" is the current year, and I'm hoping to subtract 1 from that to get the previous year worksheet name

As I mentioned before, I would like to automate the worksheet as I go along the years with minimal changes
Nevermind, I figured out to use INDIRECT,,,
 
Upvote 0

Forum statistics

Threads
1,215,234
Messages
6,123,776
Members
449,123
Latest member
StorageQueen24

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