Sequential date on separate spreadsheets

Hadorian

New Member
Joined
May 4, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi!

As i was trying to scan online for a solution, i couldn't find unique solution.
I am trying to create a template for a range of spreadsheets that would be used as a dailly planner for 365 days in a year, 2025.to be specific.
What i want to automate is date that would sequentally rise by 1 for each consecutive spreadsheet. The easiest thing would be to put the date in the header, but i believe this complicates things.
But i was thinking to choose cell A1 on each spreadsheet for the date position.
I tried one code, but it just gave #name error, so i seek for a valid solution.

Thanks!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Try...
1) First you must save your workbook
2) Select all your sheet tabs
3) Paste the formula below in cell A1 of whichever sheet is active and press Enter
4) Deselect your sheet tabs

Excel Formula:
=DATE(2025,1,REPLACE(REPLACE(CELL("filename",A2),1,SEARCH("]",CELL("filename",A2),2),""),1,3,""))
 
Last edited:
Upvote 0
As you are using 365 then you can replace the formula in my previous post with the formula below (the steps are still the same)

Excel Formula:
=DATE(2025,1,REPLACE(TEXTAFTER(CELL("filename",A2),"]"),1,3,""))
 
Upvote 0
IF these daily sheets are the first (left-most) sheets in the workbook then this should work no matter the names of the individual sheets.
  1. Select all these daily worksheets
  2. Select cell A1 in the active sheet
  3. Enter this formula
    Excel Formula:
    =DATE(2025,1,SHEET(TEXTAFTER(CELL("filename",A1),"]")))
  4. While A1 is still selected (& all the worksheets) I would recommend Copy -> PasteSpecial - Values so the dates "stick" even if the sheets are reordered or new sheets introduced at the left.
  5. Deselect your group of sheet tabs
 
Upvote 0
Thank you for the reference, but neither works, there is an error in the formula.


1733631920074.png
 
Upvote 0
The formula I posted works fine for me
date file.xlsb
AB
111/01/2025
2
Day11
Cell Formulas
RangeFormula
A1A1=DATE(2025,1,REPLACE(TEXTAFTER(CELL("filename",A2),"]"),1,3,""))


As does Peter's

date file.xlsb
A
102/01/2025
Day2
Cell Formulas
RangeFormula
A1A1=DATE(2025,1,SHEET(TEXTAFTER(CELL("filename",A1),"]")))


Are your separators normally comma's in your version?
 
Upvote 0
Solution
You are right, i replaced commas with semicolons and it worked like a charm on both.

1733632915483.png

1733632928741.png


I guess this solves it.
I appreciate the assistance on my issue and thank you for it.
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,653
Members
452,992
Latest member
TokugawaIesuma

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