Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to count table rows in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • How to Sort by Color in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • How To Remove Duplicates In Excel Column Or Row?

References

  • Approximate match with multiple criteria in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to use Excel INDIRECT Function
  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to retrieve first match between two ranges in Excel

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation date in specific year
  • How To Create Drop-down List in Excel
  • Excel Data validation with conditional list
  • Excel Data validation only dates between

How to calculate Day of the Year in Excel

by

An easy formula that returns the day of the year for a given date. There’s no built-in function in Excel that can do this.

1. To get the year of a date, use the YEAR function.

2. Use the DATE function below to return January 1, 2016. The DATE function accepts three arguments: year, month and day.

3. The formula below returns the day of the year.

Explanation: dates and times are stored as numbers in Excel and count the number of days since January 0, 1900. June 23, 2016 is the same as 42544. January 1, 2016 is the same as 42370. Subtracting these numbers and adding 1 gives the day of the year. 42544 – 42370 + 1 = 174 + 1 = 175.

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

Manipulating text strings using Left, Mid, Right, Len, Substitute in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • SWITCH function example in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel AND Function
  • Extract multiple matches into separate rows in Excel
  • Not Equal To ‘<>‘ operator in Excel

Date Time

  • Get date from day number in Excel
  • Calculate years between dates in Excel
  • Series of dates by day
  • Calculate days remaining in Excel
  • Get project midpoint in Excel

Grouping

  • If cell contains one of many things in Excel
  • Map inputs to arbitrary values in Excel
  • Group arbitrary text values in Excel
  • Categorize text with keywords in Excel
  • How to randomly assign people to groups in Excel

General

  • Count cells that contain errors in Excel
  • How to calculate percent of goal in Excel
  • How to get Excel workbook path only
  • With vs Without Array Formula in Excel
  • How to calculate project complete percentage in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning