Automatically dating individual sheets within an Excel workbook

Copper Contributor

I have a daily spreadsheet set up for each day of the month. There are 31 sheets in this workbook. A new workbook is downloaded from a master copy every month. I am trying to set it up so that you can type the date in the first sheet of the undated workbook and it automatically fills in the dates for the rest of the month. I have several individual businesses using this form and am trying to make it easy for them to use. Dating the sheets correctly can be a persistent issue. I am currently using the formula: 

 

=('MONTH (1)'!$A$1)+1

 

**each sheet is dated at the tab as well**

 

The issue is, if there aren't 31 days in the month, the final sheet that sums up all of the activity for the rest of the month is dated for the following month. For example: My September spreadsheet is dated October 1st on the final sheet. It's a problem because I have accountants using this and the date being incorrect could be an issue. I know that I can remove the formula from the last day, but am trying to avoid that. Even an error message would be better.

3 Replies

@Heathera1986 

 

wow old school. why do you need a sheet for each day?

We dont have a system that runs all of our reports the way we want them, so we break down what money is collected each day by how and what. It then gets totalled up for the month at the end.

@Heathera1986 

 

I can relate, but putting all the transactions in one table instead with a date for each will be easier to deal with or manipulate with formulas.

 

as an example:

Here is a raw employee pay calculation dataset spanning 1/1/2020 thru 12/31/2021

Yea_So_0-1632937676393.png

if we followed your system of putting each employee in a sheet and having a sheet for each day so that would be 13 employees x time span of 1/1/2020 thru 12/31/2021 would be 4,383 sheets.

 

whereas in the above on 1 sheet for all 13 employees.

we could then transpose it into a usable  formatted dataset:

Yea_So_1-1632937979512.png

That we can use in a Power Pivot:

Yea_So_2-1632938106146.png

which we can selectively expand to see the details of each year aggregation for example by quarters:

Yea_So_3-1632938253141.png

or by month:

Yea_So_4-1632938298666.png

and its dynamic (automatically update) the pivot table will automatically update as data is added just by refreshing the power query pressing ctrl+alt+F5, which should refresh the power query and the pivot table.

Data Model is setup this way:

Yea_So_5-1632938503145.png

 

https://youtu.be/e-CFYi52gpc

 

Here's the article link related to the file below:

Pro rate salary based on Hire and Fire date and adding 3 percent base - Microsoft Community

 

File: My salary_Increment_Calculation Final.xlsx