Pinterest Pixel

How to Find What Day of the Year It Is in Excel – Step by Step Guide

John Michaloudis
When working with dates in Excel, it’s often useful to know the "day of the year" — essentially, what number day of 365 (or 366 in a leap year) a specific date falls on.
Whether you’re managing data that needs tracking across days or simply curious to calculate it, I’ll show you a few ways to easily find what day of the year it is in Excel.

When working with dates in Excel, it’s often useful to know the “day of the year” — essentially, what number day of 365 (or 366 in a leap year) a specific date falls on. Whether you’re managing data that needs tracking across days or simply curious to calculate it, I’ll show you a few ways to easily find what day of the year it is in Excel.

Key Takeaways:

  • Calculating the day of the year helps track and organize data based on time more precisely.
  • Use the DATE and YEAR functions to find the day of the year.
  • Including the TODAY() function in formulas allows real-time day calculations.
  • The YEARFRAC function provides another way to approximate day numbers for any date.
  • Make sure dates are entered in a consistent format to avoid errors in calculations.

 

Unveiling the Mystery Behind Dates in Excel

The Importance of Date Calculations in Data Analysis

Date calculations are key in data analysis as they bridge temporal elements with quantitative insights. In financial analysis, for example, knowing the exact date is essential for tracking the performance of investments over time, budgeting future projects, or calculating interest and amortization.

Dates also serve as a timeline for data, allowing analysts to isolate specific periods for closer examination and comparison. Reflecting on this, we can understand that the way we track and manipulate dates influences the accuracy and effectiveness of our analysis.

How Excel Manages Dates Internally

Excel’s date management system may come across as peculiar at first glance, but once understood, it reveals a logical approach that amplifies its computational abilities. Internally, Excel represents dates as sequential serial numbers, whereby each day is numerically sequenced from a fixed starting point, which, intriguingly, is January 1, 1900. When I input any date, Excel covertly computes it into a number—enabling a variety of date and time-related functions.

This handling of dates as serial numbers is what allows users like me to effortlessly perform calculations with dates as easily as I would with any other number. I can add and subtract days, derive differences between dates, and even use them in larger formulaic structures. Interestingly, this system means that time values are represented as decimal fractions, making time and date calculations seamless in Excel.

 

The Power of Excel Formulas for Date Calculations

Basic Date Functions You Need to Know

Recognizing a suite of basic date functions is fundamental for navigating Excel’s time-based capabilities. Some functions are quintessential for everyday tasks:

  • TODAY(): This function returns the current date, refreshing every time the worksheet recalculates.
  • NOW(): If I require both the current date and time, NOW() comes to the rescue.
  • DATE(): For creating dates by combining individual year, month, and day arguments.
  • DAY(): To extract and examine just the day component of a date.
  • MONTH(): This function helps to retrieve the month from a given date.
  • YEAR(): When the year component is needed, YEAR() simplifies its extraction.

Each of these functions unlocks separate aspects of date and underpins a variety of more complex calculations.

 

Step-by-Step Guide to Finding the Day Number of a Year

Method 1: Using a Simple Formula

Follow the steps below to find the day number of the year:

STEP 1: Enter a date.

STEP 2: Enter the formula to find the day of the year.

Here’s what this does:

  • YEAR(A2) extracts the year from your date.
  • DATE(YEAR(A2), 1, 1) will return the first day of that year.
  • Subtracting this from your original date will return the number of days between the two.
  • Adding 1 include starting date in the calculation.

This formula will give you the day number of the year for any date entered in cell A2.

Method 2: Using the TEXT and DATE Functions

If you prefer seeing the result formatted in text, try the TEXT function combined with DATE:

=TEXT(A2 – DATE(YEAR(A2),1,1) + 1, “0”)

This formula essentially repeats the steps above but gives you the result in a text format. If you want it to show up as, for instance, “Day 310 of the year,” you can add custom text:

=”Day ” & TEXT(A2 – DATE(YEAR(A2),1,1) + 1, “0”) & ” of the year”

Method 3: Using the YEARFRAC Function

Another creative way is to use the YEARFRAC function. This approach is a bit unconventional, but it’s helpful if you like experimenting with formulas. Here’s what to do:

=ROUND(YEARFRAC(DATE(YEAR(A2), 1, 1), A2, 1) * 365, 0)

This formula uses YEARFRAC to find the fraction of the year that has passed since January 1st to the specific date in A2. Multiplying by 365 and rounding gives you an approximation of the day number.

 

Tips and Tricks

Avoiding Common Pitfalls

  • If the default settings mismatch my preference for date format, I customize the date format within Excel using the Format Cells dialog.
  • When entering dates, I opt for formats that are clearly delineated, such as “YYYY-MM-DD”, to avoid confusion.

Conditional Formatting for Date Indicators

Conditional formatting is used to transform raw data into visually helpful information. You can set up rules based on date, duration or milestones. Excel will highlight the cells based on the rules mentioned.

For instance, you can use conditional formatting to highlight tasks that are due today.

Use this formula in conditional formatting to highlight dates that are more than 30 days old.

=TODAY()-cell_reference>30

 

FAQs

How to calculate what day of the year it is today?

You can use the DATE, YEAR, and TODAY functions to know which day of the year it is today.

=DATE(YEAR(TODAY()), 1, 0)

How to find the day number of any date?

If the date is mentioned in cell A2, the formula to find the day number will be:

=DATE(YEAR(A1), 1, 0)

How to display a date as a day of year in Excel?

The best way to display a date as a day of the year in Excel is to use the formula =A1-DATE(YEAR(A1),1,0), where A1 is the cell containing the date. This formula will give you the date’s day number in the year. For example, January 1st will display as 1, February 1st as 32, and so on.

Which day is today Excel?

To find out which day it is today in Excel, use the =TODAY() function. Just enter =TODAY() in a cell, and Excel will display the current date. It automatically refreshes each time the workbook is opened or a recalculation occurs.

How to calculate the day of the year from a date?

To calculate the day of the year from a date in Excel, you’ll want to use the formula =B1-DATE(YEAR(B1),1,0), assuming the date you’re referencing is in cell B1. This formula subtracts the first day of the year from your specified date to find its position in the year. Enter the formula in a cell, then press Enter to see the day of the year for the date in B1.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  Not using Quotation Marks for Text in Formulas

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...