In this guide, we’ll see how to create a vacation tracker in Excel. The same process works for any year: just update the dates and the holidays.

If you’re interested in an Excel calendar for 2026 instead, click here!
Note: the screenshots and code in this guide use example dates; the downloadable file applies exactly the same logic.
Purpose of the Vacation Tracker File in Excel
To use the vacation schedule file, simply follow these steps:
- Review the dates entered in the "TBL_HOLIDAYS" table, as they are considered holidays
- Enter the employee’s name and the information for each day into the individual tables
- Update the PivotTable found in the "TBL_RECAP_AUTO_PIVOT" sheet
- Et voilà!
We’re creating an Excel-based vacation schedule file that allows us to:
- Quickly enter information for individual employees
- Break down the information by month
- Quickly view days designated as holidays
- Consolidate the data into a single table for any further calculations
- Review the data in a dedicated PivotTable
If, on the other hand, you’d like to learn more about how the file was created, let’s take a look at how to create a fully dynamic file in Excel.
Holidays to Exclude from the Excel Vacation Schedule

The file contains a table called TBL_HOLIDAYS that lists the days considered holidays. For simplicity, I’ve included all weekend dates for the year, as well as some major holidays such as Christmas, April 25, and so on.
The advantage of creating a table is that you can modify all this information as you see fit: for example, if the weekend is a workday, you can remove all irrelevant dates from the table. If there are other custom holidays that are important to the company, you can add the dates that matter to you.
As you’ll notice, in column C there’s an additional column called “HOLIDAYS_TEXT.” This column is calculated automatically and is necessary for a conditional formatting rule, we want to display, for each individual month, which days are considered holidays.
Let’s look at the formula in detail:
=CONCAT(
IF(LEN(DAY([@HOLIDAYS]))=1,"0"&DAY([@HOLIDAYS]),DAY([@HOLIDAYS])),"/",
IF(LEN(MONTH([@HOLIDAYS]))=1,"0"&MONTH([@HOLIDAYS]),MONTH([@HOLIDAYS])),"/",YEAR([@HOLIDAYS]))
This Excel formula uses the CONCAT (CONCATENATE would do the same) function to combine multiple strings into a single value. Essentially, we want to reconstruct the date entered in the “HOLIDAYS” column by using the functions DAY, MONTH, and YEAR to extract the day, month, and year of the date, respectively.
The function IF is used to check the length of the value returned by the function DAY or MONTH, and if it is equal to 1, a zero is prepended to the value. This ensures that the date is always displayed in the dd/mm/yyyy format; otherwise, we might encounter issues with dates such as 01/01/2023 or 1/1/2023, when working with dates in text format, we cannot allow these cases, otherwise certain conditions would not work.
A more elegant alternative could be this:
=LET(
day,TEXT(DAY([@HOLIDAYS]),"0"),
month,TEXT(MONTH([@HOLIDAYS]),"0"),
year,TEXT(YEAR([@HOLIDAYS]),"0"),CONCAT(
IF(LEN(day)=1,"0"&day,day),"/",
IF(LEN(month)=1,"0"&month,month),"/",year))
This formula is similar to the first one, but it uses the LET function to assign intermediate values to local variables. The TEXT function is used to format the values extracted by the DAY, MONTH, and YEAR functions as strings. It’s certainly more readable for the user, but it’s only compatible with the latest versions of Excel (Excel 2021 and later), so you won’t find it in the file. If you have Excel for Microsoft 365, LET is a fantastic function because it allows you to clearly identify, without any ambiguity, which parameters you need to perform the following calculations.
Let’s also insert a table called TBL_MONTH where 1 corresponds to JAN, 2 to FEB, 3 to MAR, and so on. This step is solely for the sake of the final display.
Monthly Vacation Schedule in Excel for Individual Employees

The idea is to have a monthly vacation schedule that consolidates the information for each individual employee, all within a single Excel workbook. Each month will have its own table, which, for simplicity, we’ve placed within the corresponding quarter; otherwise, we would have had 12 sheets, and the file might have seemed less user-friendly.
All you need to do is follow these steps:
- Enter the employee's name
- Enter "WORK" for days marked as workdays
- Do not enter anything for days considered holidays
- Indicate other options such as "REMOTE," "VACATION," or "OTHER" on the designated days
The file is completely dynamic, so the names I’ve chosen are just a starting point, if you prefer to use different names, that’s no problem. You can choose them yourself and, if you wish, replace the existing names using Home > Find & Select > Find and Replace.
The only difference between the various tables will be the conditional formatting rule, which in the case of TBL_JANUARY is as follows:
=COUNTIF(HOLIDAYS!$C:$C,B$2)=1
This formula checks whether the date is entered in the HOLIDAYS sheet, specifically in the HOLIDAYS_TEXT column. The HOLIDAYS_TEXT column was the one created earlier using the functions CONCAT and TEXT, if the date is a holiday, it will appear in red with a different background color. Otherwise, it will have no additional formatting.
The condition B$2 indicates that we want the entire column to be affected by conditional formatting, since it will always apply to row 2 while ignoring the column condition.
The formulas for the other tables are practically the same; only the reference row will change, for TBL_FEBRUARY, for example, the formula will be:
=COUNTIF(HOLIDAYS!$C:$C,B$8)=1
There are no other formulas on the sheet; you just need to make sure the tables have the correct spacing and avoid having empty rows.
The same process is repeated for the other three sheets, each of which covers three months.
How to Create a Monthly Vacation Schedule in Excel
The monthly vacation schedules must be consolidated so you can work on a single Excel table. In this case, the key tool is Power Query, which allows you to automatically retrieve all the entered information by following a series of steps without using code. If you were to do this using formulas, the entire process would be very complex, so it’s best to skip that approach.
How to load an Excel table into Power Query
We need to load the tables on a month-by-month basis, which will then be consolidated into a single output table, Power Query is perfect for this type of integration, given the numerous underlying complexities involved, such as:
- The columns are all different from one another, as each corresponds to a specific day
- The rows vary from table to table, since not all employees will be active in every month
So let’s load all 12 tables using the same procedure, which is:

- Select the table you’re interested in
- Click Data > Get Data > From Other Sources > From Table/Range
- Click on Transform Data
- Review the type changes, then click Close and Load into > Connection Only
You might be wondering why it’s necessary to reload the same table into Power Query. The key point is that this data needs to be processed, so we keep the data entry phase (the individual table) separate from the final analysis phase. If we loaded the data as anything other than “Connection Only,” we’d end up with a duplicate of the same table in another table, and we don’t need that information. We only need to load it as a “Connection Only” because we’ll then consolidate the data by quarter and finally combine it for all years.
How to Merge Queries in Power Query in Excel
Once we’ve loaded all 12 tables into Power Query, the next step is to create a table summarizing the first quarter:

- Select TBL_JANUARY, then click Home > Merge Queries > Merge Queries as New and select TBL_FEBRUARY. Be sure to select the correct join type, which will be Full Outer: since some employees may not be present in certain months, we need to make sure we don’t lose them along the way. With a Full Outer join, we’ll have the various employees either on the same row (if they appear in multiple tables) or one below the other (if they appear only in certain months)
- We’ll then repeat the procedure by including TBL_MARCH as well, again using “Merge Queries.”
- Let’s expand the individual columns by clicking the arrow in each table, both for TBL_FEBRUARY and TBL_MARCH
- Create the conditional column using Add Column > Conditional Column to retrieve the employee’s name: the first time a text value is found across all employee columns, we want it to be returned in a new column, which will become our base column
- Select the intermediate columns containing the employee’s name and delete them using Home > Remove Columns, since we’ve already retrieved it in the previous step
Let’s take a closer look.
Here is the code used to merge the individual months together:
let
Source = Table.NestedJoin(TBL_JANUARY, {"EMPLOYEE"}, TBL_FEBRUARY, {"EMPLOYEE"}, "TBL_FEBRUARY", JoinKind.FullOuter),
#"Merged Queries" = Table.NestedJoin(Source, {"EMPLOYEE"}, TBL_MARCH, {"EMPLOYEE"}, "TBL_MARCH", JoinKind.FullOuter),
#"Expanded TBL_FEBRUARY" = Table.ExpandTableColumn(#"Merged Queries", "TBL_FEBRUARY", {"EMPLOYEE", "01/02/2024", "02/02/2024", "03/02/2024", "04/02/2024", "05/02/2024", "06/02/2024", "07/02/2024", "08/02/2024", "09/02/2024", "10/02/2024", "11/02/2024", "12/02/2024", "13/02/2024", "14/02/2024", "15/02/2024", "16/02/2024", "17/02/2024", "18/02/2024", "19/02/2024", "20/02/2024", "21/02/2024", "22/02/2024", "23/02/2024", "24/02/2024", "25/02/2024", "26/02/2024", "27/02/2024", "28/02/2024", "29/02/2024"}, {"EMPLOYEE.1", "01/02/2024", "02/02/2024", "03/02/2024", "04/02/2024", "05/02/2024", "06/02/2024", "07/02/2024", "08/02/2024", "09/02/2024", "10/02/2024", "11/02/2024", "12/02/2024", "13/02/2024", "14/02/2024", "15/02/2024", "16/02/2024", "17/02/2024", "18/02/2024", "19/02/2024", "20/02/2024", "21/02/2024", "22/02/2024", "23/02/2024", "24/02/2024", "25/02/2024", "26/02/2024", "27/02/2024", "28/02/2024", "29/02/2024"}),
#"Expanded TBL_MARCH" = Table.ExpandTableColumn(#"Expanded TBL_FEBRUARY", "TBL_MARCH", {"EMPLOYEE", "01/03/2024", "02/03/2024", "03/03/2024", "04/03/2024", "05/03/2024", "06/03/2024", "07/03/2024", "08/03/2024", "09/03/2024", "10/03/2024", "11/03/2024", "12/03/2024", "13/03/2024", "14/03/2024", "15/03/2024", "16/03/2024", "17/03/2024", "18/03/2024", "19/03/2024", "20/03/2024", "21/03/2024", "22/03/2024", "23/03/2024", "24/03/2024", "25/03/2024", "26/03/2024", "27/03/2024", "28/03/2024", "29/03/2024", "30/03/2024", "31/03/2024"}, {"EMPLOYEE.2", "01/03/2024", "02/03/2024", "03/03/2024", "04/03/2024", "05/03/2024", "06/03/2024", "07/03/2024", "08/03/2024", "09/03/2024", "10/03/2024", "11/03/2024", "12/03/2024", "13/03/2024", "14/03/2024", "15/03/2024", "16/03/2024", "17/03/2024", "18/03/2024", "19/03/2024", "20/03/2024", "21/03/2024", "22/03/2024", "23/03/2024", "24/03/2024", "25/03/2024", "26/03/2024", "27/03/2024", "28/03/2024", "29/03/2024", "30/03/2024", "31/03/2024"}),
#"Conditional column added" = Table.AddColumn(#"Expanded TBL_MARCH", "EMPLOYEE_LAST", each if [EMPLOYEE] <> null then [EMPLOYEE] else if [EMPLOYEE.1] <> null then [EMPLOYEE.1] else if [EMPLOYEE.2] <> null then [EMPLOYEE.2] else null),
#"Removed Columns" = Table.RemoveColumns(#"Conditional column added",{"EMPLOYEE", "EMPLOYEE.1", "EMPLOYEE.2"})
in
#"Removed Columns"
If you’ve taken a look, you’ll see that it looks very long, but the process is relatively simple:
We need to use Table.NestedJoin in M (the Power Query language) to merge three tables: “TBL_JANUARY,” “TBL_FEBRUARY,” and “TBL_MARCH.” First, we’ll merge TBL_JANUARY and TBL_FEBRUARY, and then, in a second merge, we’ll add TBL_MARCH. We need to perform an outer join (JoinKind.FullOuter) based on the “EMPLOYEE” column present in each table, since some employees may be present in one month but not on the payroll for others.
We then need to expand all the tables using Table.ExpandTableColumn, from which we derive the values for individual days and individual employees. Once expanded, we need to map all dimensions back to a single employee name, which we can do by creating a conditional column using Table.AddColumn. In this case, the function checks all columns containing the employee’s name (“EMPLOYEE,” “EMPLOYEE.1,” “EMPLOYEE.2”) and, as soon as it finds a non-empty value, returns it.
Our column will be called “EMPLOYEE_LAST,” which we’ll then use as a key to aggregate it with the other quarters. The final step is to remove the three intermediate columns using Table.RemoveColumns, since we no longer need them (“EMPLOYEE,” “EMPLOYEE.1,” “EMPLOYEE.2”).
We’ll repeat this step for the other three quarters as well, resulting in four queries that aggregate the individual quarters. At this point, all that’s left is to join them together:
Click here if you want to take a look at the code needed to combine the 4 queries:
let
Source = Table.NestedJoin(TBL_Q1, {"EMPLOYEE_LAST"}, TBL_Q2, {"EMPLOYEE_LAST"}, "TBL_Q2", JoinKind.FullOuter),
#"Merged Queries" = Table.NestedJoin(Source, {"EMPLOYEE_LAST"}, TBL_Q3, {"EMPLOYEE_LAST"}, "TBL_Q3", JoinKind.FullOuter),
#"Merged Queries2" = Table.NestedJoin(#"Merged Queries", {"EMPLOYEE_LAST"}, TBL_Q4, {"EMPLOYEE_LAST"}, "TBL_Q4", JoinKind.LeftOuter),
#"Expanded TBL_Q2" = Table.ExpandTableColumn(#"Merged Queries2", "TBL_Q2", {"01/04/2024", "02/04/2024", "03/04/2024", "04/04/2024", "05/04/2024", "06/04/2024", "07/04/2024", "08/04/2024", "09/04/2024", "10/04/2024", "11/04/2024", "12/04/2024", "13/04/2024", "14/04/2024", "15/04/2024", "16/04/2024", "17/04/2024", "18/04/2024", "19/04/2024", "20/04/2024", "21/04/2024", "22/04/2024", "23/04/2024", "24/04/2024", "25/04/2024", "26/04/2024", "27/04/2024", "28/04/2024", "29/04/2024", "30/04/2024", "01/05/2024", "02/05/2024", "03/05/2024", "04/05/2024", "05/05/2024", "06/05/2024", "07/05/2024", "08/05/2024", "09/05/2024", "10/05/2024", "11/05/2024", "12/05/2024", "13/05/2024", "14/05/2024", "15/05/2024", "16/05/2024", "17/05/2024", "18/05/2024", "19/05/2024", "20/05/2024", "21/05/2024", "22/05/2024", "23/05/2024", "24/05/2024", "25/05/2024", "26/05/2024", "27/05/2024", "28/05/2024", "29/05/2024", "30/05/2024", "31/05/2024", "01/06/2024", "02/06/2024", "03/06/2024", "04/06/2024", "05/06/2024", "06/06/2024", "07/06/2024", "08/06/2024", "09/06/2024", "10/06/2024", "11/06/2024", "12/06/2024", "13/06/2024", "14/06/2024", "15/06/2024", "16/06/2024", "17/06/2024", "18/06/2024", "19/06/2024", "20/06/2024", "21/06/2024", "22/06/2024", "23/06/2024", "24/06/2024", "25/06/2024", "26/06/2024", "27/06/2024", "28/06/2024", "29/06/2024", "30/06/2024", "EMPLOYEE_LAST"}, {"01/04/2024", "02/04/2024", "03/04/2024", "04/04/2024", "05/04/2024", "06/04/2024", "07/04/2024", "08/04/2024", "09/04/2024", "10/04/2024", "11/04/2024", "12/04/2024", "13/04/2024", "14/04/2024", "15/04/2024", "16/04/2024", "17/04/2024", "18/04/2024", "19/04/2024", "20/04/2024", "21/04/2024", "22/04/2024", "23/04/2024", "24/04/2024", "25/04/2024", "26/04/2024", "27/04/2024", "28/04/2024", "29/04/2024", "30/04/2024", "01/05/2024", "02/05/2024", "03/05/2024", "04/05/2024", "05/05/2024", "06/05/2024", "07/05/2024", "08/05/2024", "09/05/2024", "10/05/2024", "11/05/2024", "12/05/2024", "13/05/2024", "14/05/2024", "15/05/2024", "16/05/2024", "17/05/2024", "18/05/2024", "19/05/2024", "20/05/2024", "21/05/2024", "22/05/2024", "23/05/2024", "24/05/2024", "25/05/2024", "26/05/2024", "27/05/2024", "28/05/2024", "29/05/2024", "30/05/2024", "31/05/2024", "01/06/2024", "02/06/2024", "03/06/2024", "04/06/2024", "05/06/2024", "06/06/2024", "07/06/2024", "08/06/2024", "09/06/2024", "10/06/2024", "11/06/2024", "12/06/2024", "13/06/2024", "14/06/2024", "15/06/2024", "16/06/2024", "17/06/2024", "18/06/2024", "19/06/2024", "20/06/2024", "21/06/2024", "22/06/2024", "23/06/2024", "24/06/2024", "25/06/2024", "26/06/2024", "27/06/2024", "28/06/2024", "29/06/2024", "30/06/2024", "EMPLOYEE_LAST.1"}),
#"Expanded TBL_Q3" = Table.ExpandTableColumn(#"Expanded TBL_Q2", "TBL_Q3", {"01/07/2024", "02/07/2024", "03/07/2024", "04/07/2024", "05/07/2024", "06/07/2024", "07/07/2024", "08/07/2024", "09/07/2024", "10/07/2024", "11/07/2024", "12/07/2024", "13/07/2024", "14/07/2024", "15/07/2024", "16/07/2024", "17/07/2024", "18/07/2024", "19/07/2024", "20/07/2024", "21/07/2024", "22/07/2024", "23/07/2024", "24/07/2024", "25/07/2024", "26/07/2024", "27/07/2024", "28/07/2024", "29/07/2024", "30/07/2024", "31/07/2024", "01/08/2024", "02/08/2024", "03/08/2024", "04/08/2024", "05/08/2024", "06/08/2024", "07/08/2024", "08/08/2024", "09/08/2024", "10/08/2024", "11/08/2024", "12/08/2024", "13/08/2024", "14/08/2024", "15/08/2024", "16/08/2024", "17/08/2024", "18/08/2024", "19/08/2024", "20/08/2024", "21/08/2024", "22/08/2024", "23/08/2024", "24/08/2024", "25/08/2024", "26/08/2024", "27/08/2024", "28/08/2024", "29/08/2024", "30/08/2024", "31/08/2024", "01/09/2024", "02/09/2024", "03/09/2024", "04/09/2024", "05/09/2024", "06/09/2024", "07/09/2024", "08/09/2024", "09/09/2024", "10/09/2024", "11/09/2024", "12/09/2024", "13/09/2024", "14/09/2024", "15/09/2024", "16/09/2024", "17/09/2024", "18/09/2024", "19/09/2024", "20/09/2024", "21/09/2024", "22/09/2024", "23/09/2024", "24/09/2024", "25/09/2024", "26/09/2024", "27/09/2024", "28/09/2024", "29/09/2024", "30/09/2024", "EMPLOYEE_LAST"}, {"01/07/2024", "02/07/2024", "03/07/2024", "04/07/2024", "05/07/2024", "06/07/2024", "07/07/2024", "08/07/2024", "09/07/2024", "10/07/2024", "11/07/2024", "12/07/2024", "13/07/2024", "14/07/2024", "15/07/2024", "16/07/2024", "17/07/2024", "18/07/2024", "19/07/2024", "20/07/2024", "21/07/2024", "22/07/2024", "23/07/2024", "24/07/2024", "25/07/2024", "26/07/2024", "27/07/2024", "28/07/2024", "29/07/2024", "30/07/2024", "31/07/2024", "01/08/2024", "02/08/2024", "03/08/2024", "04/08/2024", "05/08/2024", "06/08/2024", "07/08/2024", "08/08/2024", "09/08/2024", "10/08/2024", "11/08/2024", "12/08/2024", "13/08/2024", "14/08/2024", "15/08/2024", "16/08/2024", "17/08/2024", "18/08/2024", "19/08/2024", "20/08/2024", "21/08/2024", "22/08/2024", "23/08/2024", "24/08/2024", "25/08/2024", "26/08/2024", "27/08/2024", "28/08/2024", "29/08/2024", "30/08/2024", "31/08/2024", "01/09/2024", "02/09/2024", "03/09/2024", "04/09/2024", "05/09/2024", "06/09/2024", "07/09/2024", "08/09/2024", "09/09/2024", "10/09/2024", "11/09/2024", "12/09/2024", "13/09/2024", "14/09/2024", "15/09/2024", "16/09/2024", "17/09/2024", "18/09/2024", "19/09/2024", "20/09/2024", "21/09/2024", "22/09/2024", "23/09/2024", "24/09/2024", "25/09/2024", "26/09/2024", "27/09/2024", "28/09/2024", "29/09/2024", "30/09/2024", "EMPLOYEE_LAST.2"}),
#"Expanded TBL_Q4" = Table.ExpandTableColumn(#"Expanded TBL_Q3", "TBL_Q4", {"01/10/2024", "02/10/2024", "03/10/2024", "04/10/2024", "05/10/2024", "06/10/2024", "07/10/2024", "08/10/2024", "09/10/2024", "10/10/2024", "11/10/2024", "12/10/2024", "13/10/2024", "14/10/2024", "15/10/2024", "16/10/2024", "17/10/2024", "18/10/2024", "19/10/2024", "20/10/2024", "21/10/2024", "22/10/2024", "23/10/2024", "24/10/2024", "25/10/2024", "26/10/2024", "27/10/2024", "28/10/2024", "29/10/2024", "30/10/2024", "31/10/2024", "01/11/2024", "02/11/2024", "03/11/2024", "04/11/2024", "05/11/2024", "06/11/2024", "07/11/2024", "08/11/2024", "09/11/2024", "10/11/2024", "11/11/2024", "12/11/2024", "13/11/2024", "14/11/2024", "15/11/2024", "16/11/2024", "17/11/2024", "18/11/2024", "19/11/2024", "20/11/2024", "21/11/2024", "22/11/2024", "23/11/2024", "24/11/2024", "25/11/2024", "26/11/2024", "27/11/2024", "28/11/2024", "29/11/2024", "30/11/2024", "01/12/2024", "02/12/2024", "03/12/2024", "04/12/2024", "05/12/2024", "06/12/2024", "07/12/2024", "08/12/2024", "09/12/2024", "10/12/2024", "11/12/2024", "12/12/2024", "13/12/2024", "14/12/2024", "15/12/2024", "16/12/2024", "17/12/2024", "18/12/2024", "19/12/2024", "20/12/2024", "21/12/2024", "22/12/2024", "23/12/2024", "24/12/2024", "25/12/2024", "26/12/2024", "27/12/2024", "28/12/2024", "29/12/2024", "30/12/2024", "31/12/2024", "EMPLOYEE_LAST"}, {"01/10/2024", "02/10/2024", "03/10/2024", "04/10/2024", "05/10/2024", "06/10/2024", "07/10/2024", "08/10/2024", "09/10/2024", "10/10/2024", "11/10/2024", "12/10/2024", "13/10/2024", "14/10/2024", "15/10/2024", "16/10/2024", "17/10/2024", "18/10/2024", "19/10/2024", "20/10/2024", "21/10/2024", "22/10/2024", "23/10/2024", "24/10/2024", "25/10/2024", "26/10/2024", "27/10/2024", "28/10/2024", "29/10/2024", "30/10/2024", "31/10/2024", "01/11/2024", "02/11/2024", "03/11/2024", "04/11/2024", "05/11/2024", "06/11/2024", "07/11/2024", "08/11/2024", "09/11/2024", "10/11/2024", "11/11/2024", "12/11/2024", "13/11/2024", "14/11/2024", "15/11/2024", "16/11/2024", "17/11/2024", "18/11/2024", "19/11/2024", "20/11/2024", "21/11/2024", "22/11/2024", "23/11/2024", "24/11/2024", "25/11/2024", "26/11/2024", "27/11/2024", "28/11/2024", "29/11/2024", "30/11/2024", "01/12/2024", "02/12/2024", "03/12/2024", "04/12/2024", "05/12/2024", "06/12/2024", "07/12/2024", "08/12/2024", "09/12/2024", "10/12/2024", "11/12/2024", "12/12/2024", "13/12/2024", "14/12/2024", "15/12/2024", "16/12/2024", "17/12/2024", "18/12/2024", "19/12/2024", "20/12/2024", "21/12/2024", "22/12/2024", "23/12/2024", "24/12/2024", "25/12/2024", "26/12/2024", "27/12/2024", "28/12/2024", "29/12/2024", "30/12/2024", "31/12/2024", "EMPLOYEE_LAST.3"}),
#"Conditional column added" = Table.AddColumn(#"Expanded TBL_Q4", "EMPLOYEE", each if [EMPLOYEE_LAST] <> null then [EMPLOYEE_LAST] else if [EMPLOYEE_LAST.1] <> null then [EMPLOYEE_LAST.1] else if [EMPLOYEE_LAST.2] <> null then [EMPLOYEE_LAST.2] else if [EMPLOYEE_LAST.3] <> null then [EMPLOYEE_LAST.3] else null),
#"Removed Columns" = Table.RemoveColumns(#"Conditional column added",{"EMPLOYEE_LAST","EMPLOYEE_LAST.1","EMPLOYEE_LAST.2", "EMPLOYEE_LAST.3"})
in
#"Removed Columns"
The process is essentially the same as before: first, we combine the various queries using Table.NestedJoin(again, a Full Outer join), and then expand them individually using Table.ExpandTableColumn. We’ll then have all the days of the year for each employee, but we’ll need to create a conditional column again using Table.AddColumn and then remove the intermediate columns using Table.RemoveColumns. The only difference from the previous query is that we’ll also use Table.ReorderColumns to have the “EMPLOYEE” column as the first column in our final table, so that we then have all the values for the individual days.
At this point, all that’s left is to compile all the information into a single table.
How to Summarize Vacation Schedule Information in Excel
There are several steps required to achieve our result, since the four files for each quarter need to be adjusted so they can be used correctly in Power Query.
Let’s look at the necessary steps:
Take a look here if you want to explore how to create our final reconciliation table:
let
Source = TBL_EMP_ALLQ,
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"EMPLOYEE"}, "DATE", "WORK"),
#"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"DATE", type date}}),
#"Extracted month" = Table.TransformColumns(#"Changed Type",{{"DATE", Date.Month, Int64.Type}}),
#"Renamed columns1" = Table.RenameColumns(#"Extracted month",{{"DATE", "MONTH"}}),
#"Merged Queries" = Table.NestedJoin(#"Renamed columns1", {"MONTH"}, TBL_MONTH, {"MONTH_NUM"}, "TBL_MONTH", JoinKind.LeftOuter),
#"Expanded TBL_MONTH" = Table.ExpandTableColumn(#"Merged Queries", "TBL_MONTH", {"MONTH"}, {"MONTH_DETAIL"}),
#"Grouped Rows" = Table.Group(#"Expanded TBL_MONTH", {"EMPLOYEE", "MONTH_DETAIL", "WORK", "MONTH"}, {{"DAYS", each Table.RowCount(_), Int64.Type}}),
#"Sorted Rows" = Table.Sort(#"Grouped Rows",{{"EMPLOYEE", Order.Ascending}, {"MONTH", Order.Ascending}, {"WORK", Order.Ascending}})
in
#"Sorted Rows"
This Power Query (M) code performs a series of transformations on a source table (TBL_EMP_ALLQ, the list of all employees with every quarter). In summary, the process includes these steps:

- Unpivot the existing columns except for the “EMPLOYEE” column. This change is made using the Table.UnpivotOtherColumns function, since we need to work on a per-employee basis, we want all individual values to refer to employees by switching to an employee/date/activity format instead of employee/day1/day2/day3. Select the “EMPLOYEE” column, then click Transform > Transform Other Columns Using UnPivot
- Convert the data type of the “DATE” column to date. This step is performed using the Table.TransformColumnTypes function, which allows us to modify the formats of individual columns
- Extract the month from the “DATE” column. We must always be careful because in Power Query this operation can be performed either by adding a new column or by modifying the existing column, since we’re not interested in keeping the value of the individual day, we can do this using the Table.TransformColumns function, which summarizes only the value of the month in question (1 for January, 2 for February, and so on)
- Rename the “DATE” column to “MONTH.” In this case, we need to rename the column since we’re working with months rather than individual dates. This step is made possible by Table.RenameColumns
- Perform a left outer join with another table (TBL_MONTH) on the “MONTH” column. We could actually skip this step because Power Query could directly provide values such as “January,” “February,” or “March” if we select them from the drop-down menu in the “Transform” section. However, since we want to display “JAN” for January, “FEB” for February, and so on, we’ll add a table that presents this information in text format. In this case as well, just like in the previous examples where we aggregated data by quarter, we need Table.NestedJoin
- Expanding the unique “TBL_MONTH” column into a separate “MONTH_DETAIL” column. With Table.ExpandTableColumn, we can expand the text value of the month in a single step
- Grouping rows by “EMPLOYEE,” “MONTH_DETAIL,” “JOB,” and “MONTH” and counting the number of rows for each group. In this case, we are counting the number of rows corresponding to each employee per month based on their job, as defined in the “JOB” column. Thanks to Table.Group, we will then have a column called "DAYS" that will show the total number of days per employee
- Sort the rows by “EMPLOYEE,” “MONTH,” and “JOB” in ascending order. This step is entirely at the user’s discretion, but in this case, the final table will be sorted using Table.Sort, first by the employee’s last name, then by the numerical value of the month, and finally by the type of activity
In the end, the code returns the sorted table. We can then create query groups by right-clicking on a single query > New Group. This way, we’ll have a consistent file that’s easy to update.
Our query structure will be organized as follows:

- Quarters 1, 2, 3, 4: Here we have entered the individual values from the monthly tables
- TRIMESTERS_OVERALL: Here we have the summary of the individual quarters
- RECAP: Here we have TBL_ALL (which combines the individual quarters), TBL_RECAP, which is the direct result of its processing, and TBL_RECAP_AUTO_PIVOT, which is exactly like TBL_RECAP but is loaded directly as a PivotTable
- QUERY_RACCORDO: Here we have TBL_MONTH and TBL_HOLIDAYS
How to View the Vacation Schedule in Excel

At this point, there are two options before loading the vacation schedule data and analyzing it in Excel:
- If we’re not interested in having an intermediate table, since we won’t be performing any further analysis, we can go directly to Close and Load > Into a PivotTable. The advantage is that the PivotTable will update automatically: every time we modify the source data, we’ll simply need to refresh the PivotTable to get the latest available data
- If, on the other hand, we want to have an intermediate table, we can select Close and Load into > Table. In this case, the advantage is that the dataset can also be used for other calculations, which would be more complex if we loaded the information directly into the PivotTable
In the second case, if we create a PivotTable, we must remember, after modifying the source data, to:
- Update the table (Data > Queries and Connections > Refresh All)
- Update the PivotTable (click on the PivotTable > Analyze PivotTable > Refresh)
Be careful not to skip this step because updating only the PivotTable won’t result in any changes to the analysis. We must first update the table (which updates the various steps covered earlier with Power Query) and then update the PivotTable. If you have any questions about how to create PivotTables, you can consult this dedicated guide.
If you download the file, you’ll find both versions: TBL_RECAP_AUTO_PIVOT creates the PivotTable directly, while TBL_RECAP is the intermediate table that serves as the source for the PivotTable in the PIVOT sheet.
As you can see in the image, I’ve added:
- EMPLOYEE in Rows
- JOB in Columns
- REVIEW in Values
This way, we’ll have all employees on individual rows and can quickly view all the information in a chart by clicking Insert > Chart. Let’s also add a slicer by clicking Insert > Slicer and selecting “MONTH_DETAIL”, this way, the slicer will display the month names as JAN, FEB, MAR, and so on.
Recap: How to Create a Vacation Schedule in Excel
As we’ve seen, creating a vacation schedule in Excel can be more complex than expected due to some structural issues when entering information. We’ll need to be careful to enter consistent information to simplify the entire final analysis phase, in this case, Power Query allows us to create a fully dynamic structure that can be updated with a single click. All the effort put into the design pays off because the same structure, with minor adjustments, can be reused in the years to come: simply update the individual monthly tables and holidays, and everything will be up and running again without any additional steps.
Disclaimer: The M code has been made easier to read using Power Query Formatter, a completely free online tool designed to improve the readability of M.
