Excel how-to

Birthday calendar in Excel: the formulas, and where Excel stops

A birthday calendar in Excel needs two columns, name and date of birth, and three formulas: a helper column so the list sorts by month and day instead of by year, one for the age, and one for the days until the next birthday. They are all here to copy, for Excel and for Google Sheets, along with a two-row template you can paste into an empty sheet. Two things Excel can’t do: collect the dates for you, and speak up before someone’s birthday. There’s a fix for both further down.

Hoera is a free birthday calendar for your group chat: you share one link, everyone adds their own birthday and you get a reminder every week. See how the shared birthday calendar works →

Start for free 🎉

Free · no app needed

The layout of the sheet

ColumnWhat it holdsWhere it comes from
ANameYou type it
BDate of birthYou type it, as a real date (3/15/1986)
CSortFormula
DAge todayFormula
ENext birthdayFormula
FDays to goFormula
GTurnsFormula
HMilestoneFormula

The headings go in row 1 and the first person in row 2. You enter each formula once, in row 2, and drag it down. The formulas below use commas between the arguments, as Excel does in the US and the UK. If your Excel uses a comma as the decimal sign, type semicolons instead.

The template, ready to copy

NameDate of birthSortAge todayNext birthdayDays to goTurnsMilestone
Maria G.March 15, 1986=MONTH(B2)*100+DAY(B2)=DATEDIF(B2,TODAY(),"Y")=IF(DATE(YEAR(TODAY()),MONTH(B2),DAY(B2))<TODAY(),DATE(YEAR(TODAY())+1,MONTH(B2),DAY(B2)),DATE(YEAR(TODAY()),MONTH(B2),DAY(B2)))=E2-TODAY()=YEAR(E2)-YEAR(B2)=IF(MOD(G2,10)=0,"milestone","")

Select both rows, copy them and paste them into cell A1 of an empty sheet in Excel or Google Sheets. The formulas land in the right cells. If one shows up as plain text instead of a result, double-click the cell and press Enter. Replace the sample person with your first name and date, add everyone else below, and drag the formulas in C2 to H2 down. If a cell shows a date where you expect a number, or the other way around, the sections below say which format to set.

Making this for work? Then it is better not to keep anyone’s year of birth. Give everyone a placeholder year, 1900 for example, and leave out columns D, G and H. Sorting and the countdown work the same.

Sort birthdays by month and day

The classic snag: sort the birth dates and Excel sorts by the whole date, so by year of birth. Grandma ends up at the top and the baby at the bottom. You need a column that only knows the month and the day. In C2:

=MONTH(B2)*100+DAY(B2)

March 15 becomes 315 and November 2 becomes 1102. Select the table, go to Data, then Sort, and sort by column C from smallest to largest. The list now runs from January to December and ignores the year.

In newer Excel: sorted without a helper column

Excel for Microsoft 365, Excel for the web and Excel 2021 or later can produce a sorted copy of the list that updates itself. In an empty cell next to the table:

=SORTBY(A2:B50,MONTH(B2:B50)*100+DAY(B2:B50))

Match the range exactly to your list, or empty rows show up as zeros at the top. Format the second column of the result as a date.

In Google Sheets

Sheets has no SORTBY. Keep the helper column and sort a copy by it:

=SORT(A2:C50,3,TRUE)

The 3 is the helper column, the third in the range.

The birthday formula for age

The age today, in D2:

=DATEDIF(B2,TODAY(),"Y")

Excel doesn’t suggest DATEDIF while you type, but the function works. The Y stands for full years. If the cell shows a date instead of a number, set the cell format to General.

Next birthday and days to go

To show who is up next, the sheet needs the next birthday as a date. In E2:

=IF(DATE(YEAR(TODAY()),MONTH(B2),DAY(B2))<TODAY(),DATE(YEAR(TODAY())+1,MONTH(B2),DAY(B2)),DATE(YEAR(TODAY()),MONTH(B2),DAY(B2)))

The formula checks whether this year’s birthday has already passed and, if so, takes next year’s. The days until then, in F2:

=E2-TODAY()

A 0 means today. If F2 shows a date, set the format to General; if E2 shows a number, format it as a date. Sort by column F and the next birthday is at the top. After each birthday you sort again. The age the person turns on that day, in G2:

=YEAR(E2)-YEAR(B2)

Someone born on February 29 lands on March 1 in a year without a leap day: Excel simply counts the missing day forward.

Flag the milestone birthdays

At the office and in the club, the round numbers matter most. With the age from column G, this formula marks every tenth year. In H2:

=IF(MOD(G2,10)=0,"milestone","")

For every five years, replace the 10 with a 5. Filter the column on “milestone” and you have the big birthdays of the next twelve months.

Highlight this month’s birthdays

Conditional formatting lets Excel color the rows by itself. Select the rows that hold a date, from row 2 down, go to Home, then Conditional Formatting, then New Rule, and pick “Use a formula to determine which cells to format”. For every birthday this month:

=MONTH($B2)=MONTH(TODAY())

And for today and the next seven days, with the days from column F:

=AND($F2>=0,$F2<=7)

Leave empty rows out of the selection: Excel reads an empty cell as zero, so they would light up too. In Google Sheets the same formulas go under Format, then Conditional formatting, with “Custom formula is”.

This is as close as Excel gets to a birthday reminder, with one catch: you only see the color when you open the file.

What Excel can’t do with birthdays

  • Remind you. Excel calculates while the file is open and sends nothing. A reminder email can be built with Power Automate, which is a project of its own.
  • Move into your calendar with a yearly repeat. Imported from a CSV file, birthdays tend to arrive in Google Calendar and Outlook as one-time events. They then show in one year only.
  • Collect the dates. You type every row yourself. The new coworker and last year’s baby are only on the list once you hear about them.
  • Stay current for everyone. A file sent as an attachment is out of date the next day. On a shared drive, everyone sees every year of birth.

At work there is one more question: who agreed to be on the list? For more on that, see the employee birthday list.

The list that fills itself in

If you are building the sheet for a group, the team, the club or the family, collecting the dates is the real work. Hoera turns that around. Full disclosure: we made it. You send one link and every person adds their own birthday.

  1. 1

    Add yourself

    Your name, your birthday and your email address, confirmed with a code we send you.
  2. 2

    Send the link to the group

    In the group chat, the Teams channel or by email. The message to go with it is already written.
  3. 3

    Everyone adds their own

    With a name, a birthday and an email address. The year of birth is optional: leave it out and only the month and day show.
  4. 4

    Sorted, with ages and a reminder

    The next birthday is at the top. Every person gets a weekly overview by email.

It is free and runs in the browser, with nothing to install. Hoera can’t print, and reminders on WhatsApp aren’t available yet; we are working on them and they will be paid. Excel and Hoera don’t rule each other out: if you need a sheet for the bulletin board, use the spreadsheet. If you never want to miss a birthday again, you need something that speaks up. For the tracker itself, see the birthday tracker. For every way to set one up, see how to make a birthday calendar.

Frequently asked questions

How do I sort birthdays in Excel by month and day, not year?+

With a helper column. If you sort the birth dates themselves, Excel sorts by the full date, so by year of birth. Next to the date, enter =MONTH(B2)*100+DAY(B2): March 15 becomes 315 and November 2 becomes 1102. Sort by that column from smallest to largest and the list runs from January to December.

What is the Excel formula for age from a birthday?+

=DATEDIF(B2,TODAY(),"Y"), with the birth date in B2. The result is the number of full years up to today. Excel doesn’t suggest DATEDIF while you type, but the function works.

Is there a formula for the next birthday?+

Yes. Build this year’s birthday with DATE, YEAR, MONTH and DAY, and move it a year ahead if it has already passed. The full formula is on this page. Subtract TODAY() from the result and you have the days until the birthday.

Can Excel remind me of a birthday?+

Not by itself. Excel only calculates while the file is open and it doesn’t send notifications. You can show the days until each birthday and color the ones coming up, but you have to open the file to see it. A reminder email can be built with Power Automate, which is a project of its own.

Is there a free Excel birthday calendar template?+

Plenty exist, and most are an empty grid you still fill in by hand. The one on this page is a working sheet: copy the two rows into an empty spreadsheet and the formulas come along, with an explanation of what each one does. With any template you still type every date yourself.

Do these formulas work in Google Sheets?+

Yes. TODAY, DATEDIF, DATE, YEAR, MONTH, DAY, IF, MOD and AND work the same way in Google Sheets. Only the self-sorting copy is different: Sheets has SORT instead of SORTBY, for example =SORT(A2:C50,3,TRUE) to sort by the helper column.

What if I don’t know the year someone was born?+

Excel always stores a year. Type only the month and the day and it quietly adds the current year, which makes the age wrong. Enter a placeholder year instead, 1900 for example (Excel’s calendar starts on January 1, 1900), and leave columns D, G and H empty for that person. Sorting and the days until the birthday still work, because they only use the month and the day.

Can I import the Excel birthday list into Outlook or Google Calendar?+

Into Google Calendar and classic Outlook as a CSV file, yes, but don’t count on the yearly repeat. Google says repeating events from a CSV file can arrive as one-time events, and according to answers on Microsoft’s support forum an Outlook CSV import doesn’t carry the repeat either. The birthdays then show in one year only. Outlook on the web only imports calendar files (.ics).

The list you don’t have to type

Add yourself, send the link to the group, and the birthdays fill themselves in.

Start for free 🎉

Free · no app needed