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

Data Analysis

  • Get column index in Excel Table
  • Working With Tables in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • How to Sort by Color in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel

References

  • How to reference named range different sheet in Excel
  • How to get address of first cell in range in Excel
  • To count total rows in a range in Excel
  • Count rows with at least n matching values
  • How to use Excel LOOKUP Function

Data Validations

  • Excel Data validation must contain specific text
  • Excel Data validation date in specific year
  • Excel Data validation whole percentage only
  • Excel Data validation unique values only
  • 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

  • Nested IF function example in Excel
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples

Date Time

  • Calculate total hours that fall between two times in Excel
  • Sum through n months in Excel
  • How to calculate quarter from date in Excel
  • How to get workdays between dates in Excel
  • SECOND function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers with VLOOKUP in Excel
  • Categorize text with keywords in Excel
  • Group numbers at uneven intervals in Excel
  • Group arbitrary text values in Excel
  • If cell contains one of many things in Excel

General

  • How to add sequential row numbers to a set of data in Excel
  • Count cells that contain errors in Excel
  • AutoRecover file that was never saved in Excel
  • Count cells less than in Excel
  • Subtotal invoices by age in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning