Individual Calendar Year Per Worksheet

default_name

Board Regular
Joined
May 16, 2018
Messages
180
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hey!

I have finances laid out in Excel.

There are multiple worksheets in the workbook.
Each worksheet is for a particular year.

"2018"
"2019"
"2020" etc

Is there a way to assign a calendar year to each of these worksheets?
ie: I want to assign the year 2019 to the 2019 worksheet, so that entering dates will be quicker when within that worksheet.
If I am within the 2019 worksheet and I want to assign June 19th to a cell I would have to type 6/19/19 versus simply just typing 6/19.
Currently if I were to type 6/19 it would auto-fill with a 2018 year on it.

Hope that makes sense.
Thanks in advance!
You guys are great!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I don't think you can assign a calendar year to each worksheet, as far as I know. Excel uses the current year, you would need to change the current date for that to happen.
 
Upvote 0
You can sort of do it using VBA.

If you do your dates as normal then add this code to thisworkbook (press Alt + F11, the click on thisworkbook)

Code:
Sub DateNew()


Dim yearsToadd As Variant
Dim NewYear As Variant
yearsToadd = InputBox("Number of years to add")


With ActiveSheet.Range("A1:A10")  'Change the range as required
    .Value = DateAdd("yyyy", yearsToadd, ActiveSheet.Range("A1").Value)
End With
End Sub

Then you can either assign the macro to a letter by hitting Alt and F8 then options
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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