Home > Formulas > Date > Calendar

Excel Calendar Formulas

Debra Dalgleish - Contextures

Get the Excel event calendar that shows up to 5 events each day. For Excel 365 and Excel for the Web. Or, create a printable Excel calendar, for a specific year and month, with that month's holidays highlighted. There's also a 2-page year-at-a-glance calendar.

enter upcoming events in worksheet list

1) Excel Event Calendar

In this video, I show the Excel Event calendar, where you can enter daily meetings, appointments, and other items.

  • Note: This calendar uses functions available in Excel 365 or Excel for the Web.

✅ Get the Excel Event calendar, to follow along with the video.

1.1) Excel Events Calendar Details

This is an Excel event calendar, where you enter your upcoming appointments, meetings, etc., in a worksheet list. A formula combines the time and meeting name, to show on the printable calendar.

enter upcoming events in worksheet list

On a different sheet, a six-week calendar shows the events -- with room for 5 events each day. You can set a starting date for the calendar, or it will start with the current week.

  • ✅ There is also a full-year version of the Excel Event calendar, that shows a 53-week date range.

This screen shot shows Sunday and Monday, for the first two weeks.

enter upcoming events in worksheet list

1.2) Calendar Formatting

There are 3 conditonal formatting rules on the Calendar sheet:

  • **01-Jan - More than 5 events
  • Orange fill - Today's date
  • Green fill - First day of month

3 conditonal formatting rules

1.3) Calendar Formulas

There are two main formulas in the calendar layout:

1) Dates: Date headings in each row are created with the SEQUENCE and XLOOKUP functions. Week start dates are calculated in a table named tblWeeks.

  • =SEQUENCE(1,7, XLOOKUP(B3, tblWeeks[Wk], tblWeeks[Wk Start]))

2) Events: Under each date, the following formula returns up to 5 events for that date.

  • =IFERROR(TAKE(CHOOSECOLS(LET(x, FILTER(tblEvents, tblEvents[Date]=C3,""), SORTBY(x, CHOOSECOLS(x,2))), InfoCol), CalItems),"")

Here's a quick overview of how the Events list formula works:

  1. First the FILTER function gets events for the specific date, and we LET x be its variable.
  2. Next, CHOOSECOLS gets the 2nd column from that data (Event times), to SORTBY
  3. Another CHOOSECOLS gets the combined time/event column (InfoCol=4)
  4. Finally, TAKE the first 5 rows of that (CalItems=5), and list them
  5. Or, if there is an error, the IFERROR function returns an empty string.

2) Excel Printable Calendar

This printable Excel monthly calendar lists the month's holidays at the top left, and highlights those holidays with light orange fill colour.

I print this calendar every month, and keep it near my desk, for quick reference!

excel calendar holidays formula

2.1) Video: Make Printable Excel Calendar

This 11-minute video shows how to make the monthly Excel calendar, step-by-step. There are written instructions, and the video timeline, below the video.

Video Timeline:

  • 00:00 Year and Month
  • 01:25 Month End
  • 02:50 Sunday Formula
  • 04:56 Calendar Formula
  • 05:32 Calendar Format
  • 06:15 Calendar Heading
  • 07:13 Hide Dates
  • 08:35 List Holidays

2.2) List of Holidays

In the sample workbook, there is a list of holidays, on a worksheet named Lists.

The holiday list is in a formatted Excel table, named tblHol

  • In the table, the first column contains the holiday dates
  • That column is named Holidays

list of holidays for calendar

2.3) Enter Month and Year

The main sheet in the sample file has the calendar formulas, and the cells where you enter a year number and a month number.

  • For the month, enter a number between 1 and 12
  • For the year, enter any number between 1900 and 9999

excel calendar from formulas

2.4) Calendar Date Formulas

On the Calendar sheet, in column M, there are three cells with date formulas

  1. Month Start - cell M2
  2. Month End - cell M3
  3. Month Start Week Sunday - cell M1

2.4.1) Month Start

First, I created the Month Start formula, because the other two formulas refer to the Month Start date. Here is the month start formula in cell M2:

  • =DATE(J1,J2,1)

The Excel DATE function returns a date, and it has 3 arguments:

  • 1) year, 2) month, 3) day

For our formula, here are the settings for each argument:

  1. year is in cell J1
  2. month number is in cell J2
  3. We want the first day of the month, so the number 1 is used for the third argument.

2.4.2) Month End

Next, I created the Month End formula, which is used in the calendar's conditional formatting.. Here is the month end formula in cell M2:

  • =EOMONTH(M2,0)

The Excel EOMONTH function returns a date, and it has 2 arguments:

  • 1) Start Date, 2) Months

For our formula, here are the settings for each argument:

  1. start date is in cell M2
  2. months is set at zero, because we want the end date for the start date's month

2.4.3) Start Week Sunday

Finally, I created the Month Start Week Sunday which gives us the starting date for the calendar. Here is the month end formula in cell M2:

  • =M2-(WEEKDAY(M2)-1)

The Excel WEEKDAY function returns a number, based on a date's day of the week, and it has 2 arguments:

  • 1) serial number (date)
  • 2) [optional] return type (weekday order)

Here's how our formula works:

  • Start with the month start date, in cell M2
  • Subtract the result of the WEEKDAY formula, minus 1, to find the Sunday in the start week
    1. First argument in WEEKDAY is the start date (M2), minus one day
    2. Default return type is used - Sunday (1) to Saturday (7)

2.5) Calendar Creation Formula

For the calendar, the days will be in a standard wall calendar format:

  • 7 columns - one for each weekday, Sunday to Saturday
  • 6 rows - one for each week -- months can range from 4 to 6 weeks, so allow for the maximum
  • First day of month should appear in its correct day column

2.5.1) Excel SEQUENCE Function

To create the calendar, with the above settings, the sample file uses the Excel SEQUENCE function. This function, which is available in Excel 365 and Excel for the Web, creates an array with a sequential list of numbers.

The SEQUENCE function has the following syntax for its arguments, with one required argument, and 3 optional arguments:

  • =SEQUENCE(rows,[columns],[start],[step])

The 4 arguments are:

  • rows - required - number of rows to use in the formula result
  • columns - optional - number of columns to use in the formula result
  • start - optional - first number in the sequence
  • step - optional - amount to increment each subsequent value

2.5.2) SEQUENCE Formula for Calendar

Here is the calendar creation formula in cell A4:

  • =SEQUENCE(6,7,M1)

This formula uses the first 3 arguments for the SEQUENCE function

  • rows - 6 - each month's calendar could use a maximum of 6 weeks
  • columns - 7 - a column for each weekday
  • start - M1 - cell with formula that calculates Sunday in month's start week

2.5.3) Example Month - 6 Weeks

For example, here is the calendar for April 2023. The month starts on a Saturday, and ends on a Sunday, over a span of 6 weeks.

excel calendar example 6 weeks

2.5.4) Example Month - 4 Weeks

For example, here is the calendar for February 2026. The month starts on a Sunday, and ends on a Saturday, with its 28 days fitting perfectly into only 4 weeks.

excel calendar example 4 weeks

On the Calendar sheet, there are two cells with formulas, to create the calendar headings. In row 3, below the formula cells, I added the weekday names, in cells A3: G3.

2.6.1) Weekday Names

Here's a quick way to add the weekday names in row 3, for the calendar headings:

  • In cell A3, type the short weekday name, "Sun"
  • Next, select cell A3, and point to its fill handle
  • When the pointer changes to a black plus sign, drag to the right, across to cell G3.
    • As you drag, a tooltip will show the weekday name for each cell, as you pass it
  • Release the mouse button, and Excel will AutoFill the rest of the weekday names

excel calendar heading weekday names

2.6.2) Main Heading

Here's the formula in cell A1, which shows the selected month name and year:

  • =TEXT(M2,"mmmm yyyy")

The TEXT function formats the month start date to show the full month name, and the year.

excel calendar heading formula

2.6.3) List of Holidays

The second heading formula is in cell A2, and it shows a list of the holidays in the selected month, if there are any.

Here is the formula in cell A2:

  • =TEXTJOIN(", ",TRUE, FILTER(tblHol[Holiday], (tblHol[Date]>=M2) * (tblHol[Date]<=M3), "No Holidays"))

And here's how the formula works:

  • The FILTER function returns a list of holiday names, where the dates are between the month start date and the month end date.
  • The TEXTJOIN function combines all the holiday names in a single cell, with a "comma space" separator.
  • If the month doesn't have any holidays, the formula result shows "No Holidays".

excel calendar holidays formula

2.7) Calendar Formatting

In the sample file, I formatted the calendar dates, the heading cells, the date formula cells, and the year/month cells.

I used a combination of cell formatting and conditional formatting, described below.

2.7.1) Year/Month and Date Cells

For the Year and Month cells, I used the following cell formatting:

  • Fill colour - light blue
  • Alignment - Horizontal - Centre
  • Alignment - Vertical - Centre
  • Number Format - General

format year and month cells

2.7.2) Date Formula Cells

For the date formula cells, I used the following cell formatting:

  • Alignment - Vertical - Centre
  • Number Format - Short Date

format date formula cells

2.7.3) Calendar Day Cells

For the calendar day cells, I used the following cell formatting:

  • Alignment - Vertical - Top
  • Number Format - Custom - "d" (to show the day number only)
  • Font - Calibri, 16 pt, Bold
  • Border - All sides - Medium Grey

format date formula cells

2.8) Calendar Conditional Formatting

For the calendar day cells, I used 2 conditional formatting rules:

-- 1) Hide days before and after the month

-- 2) Highlight holidays

The rule formulas and format settings are in the sections below.

2.8.1) Hide Days Before and After Month

To create a clean, uncluttered calendar, this conditional formatting rule hides the day numbers that are not within the selected month.

To apply the rule, follow these steps:

  • Select cells A4:G9, where the SEQUENCE formula was applied
  • On the Excel Ribbon, go to the Home tab
  • In the Styles group, click the Condtional Formatting command
  • Click the New Rule command, top open the New Formatting Rule dialog box
  • In top section (Select a Rule Type), click on Use a formula to determine which cells to format
  • In the Rule Description section, enter the following formula:
    • =OR(A4<$M$2,A4>$M$3)
  • Next, click the Format button
  • In the Format Cells dialog box, for Font colour, select white
  • Next, go to the Fill tab, and for Background colour, select white
  • Click OK, to close the Format Cells dialog box, and click OK to apply the Conditional Formatting rule.

conditional formatting rule to hide date numbers

2.8.2) Highlight Holidays

To make holidays stand out in the calendar, this conditional formatting rule highlights the holiday cells for the selected month.

To apply the rule, follow these steps:

  • Select cells A4:G9, where the SEQUENCE formula was applied
  • On the Excel Ribbon, go to the Home tab
  • In the Styles group, click the Condtional Formatting command
  • Click the New Rule command, top open the New Formatting Rule dialog box
  • In the top section (Select a Rule Type), click on Use a formula to determine which cells to format
  • In the Rule Description section, enter the following formula:
    • =COUNTIF(Holidays,A4)
  • Next, click the Format button
  • In the Format Cells dialog box, for Background colour, select light orange
  • Click OK, to close the Format Cells dialog box, and click OK to apply the Conditional Formatting rule.

conditional formatting rule to hide date numbers

Excel Day Number Calendar

This simple calendar shows a full year of dates, with each date's day number. If you print out the calendar, it fits on 2 letter-sized pages.

conditional formatting highlights first day each month

Set the Year

In the Day Number5 calendar workbook, go to the Admin sheet, if you want to set the calenar year.

  • In cell B4 (named StartYr), type a valid year number.
  • In cell C4 (named StartDate), a DATE formula calculates that year's start date.
    • =DATE(B4,1,1)

set the calendar year

See the Day Numbers Calendar

On the Days sheet, formulas calculate the dates and day numbers.

  • In row 1, there are 2 formulas, to show the year at the top of each printed page.
  • There are 37 rows of eates, because that's what fit on a letter-sized page, on my computer and printer.

Day Numbers

  • In cell A2, I typed the number 1
  • In the cells below, each formula adds 1 to the cell above.
    • For example, in cell A2, the formula is: =A2 + 1
  • In the remaining date columns, there is a formula in row 2, to calculate the next day number, based on the previous set of day numbers.
    • For example, the formula in cel D2 is: =MAX(A:A)+1

Calendar Dates

For each date in the calendar, the formula calculates the StartDate, plus the day number, minus 1.

  • For example, the formula in cell B2 is: =StartDate+A2-1
  • All of the date cells are in a named range - Dates

Calendar Formatting

  • On the Days sheet, the day number and date cells have medium grey borders, on all sides.
  • The dates are formatted as ddd mm-dd, so January 15, 2026 is Tue 01-06
  • The first day of each month has a red top border, and bold font,
    created with conditional formatting

conditional formatting highlights first day each month

Get the Excel Files ✅

  1. Event Calendar: Download an Excel event calendar with a sheet where you can enter event dates and times. Up to 5 events will show on the calendar, for each date. Requires Excel 365, with spill functions. The file is zipped, and is in xlsx file format, with no macros
    • ✅ There is also a full-year version of the Excel Event calendar, that shows a 53-week date range.
  2. Printable Calendar: To see how these Excel calendar formulas work, download the sample Excel Calendar Formulas workbook. The file is zipped, and is in xlsx file format, with no macros
  3. Day Number Calendar: Download this year-at-a-glance calendar, to print a 2-page list with all dates in selected year, along with their day numbers. Cross off each day, when you complete a daily task or habit.

Get Monthly Excel Tips!

Don't miss my monthly Excel newsletter! You'll get quick tips, article links, and a bit of fun. Add your email, and click Sign Up.

Next, when you get my reply, click the Confirm button. I add this step to protect you from spam!

Related Tutorials

SEQUENCE function

Date Functions

Conditional Formatting Intro

Conditional Formatting Examples

Excel Named Table

Spill Function Examples

 

 

Last updated: June 15, 2026 2:56 PM