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

Data Analysis

  • Use Data Form to input, edit and delete records in Excel
  • How to Create Area Chart in Excel
  • How to create dynamic reference table name in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • How To Filter Data in Excel

References

  • How to use Excel MATCH Function
  • Find closest match in Excel
  • How to get relative column numbers in a range in Excel
  • How to use Excel INDIRECT Function
  • How to get address of first cell in range in Excel

Data Validations

  • Data validation must not exist in list
  • Excel Data validation number multiple 100
  • Excel Data validation allow uppercase only
  • Excel Data validation unique values only
  • Excel Data validation with conditional list

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

  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • SWITCH function example in Excel
  • Nested IF function example in Excel
  • How to return blank in place of #DIV/0! error in Excel

Date Time

  • Add business days to date in Excel
  • How to calculate working days left in month in Excel
  • List holidays between two dates in Excel
  • Add days exclude certain days of week in Excel
  • How to get workdays between dates in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Calculate conditional mode with criteria in Excel
  • Group arbitrary text values in Excel
  • Group numbers with VLOOKUP in Excel
  • Map inputs to arbitrary values in Excel

General

  • How to set or clear a print area in Excel Worksheet
  • Subtotal invoices by age in Excel
  • How to add sequential row numbers to a set of data in Excel
  • 44 Practical Excel IF function Examples
  • How to generate random number between two numbers in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning