YEARDAY Function

Returns a number representing the day in the year, 1–365, where 1 is the first day of the year
Sample Usage
YEARDAY([Due Date]5)
  • date
  • date
    The date from which you want to return the day as a number
Usage Notes

For leap years, YEARDAY returns a number between 1366.


This example references the following sheet information:

 Clothing ItemUnits SoldSold DateOrder DateShip Date
1T-Shirt7802/12/23 1:55 PM02/12/2302/15/23
2Pants4202/15/23 10:23 AM02/15/2303/20/23
3Jacket21702/20/23 2:45 PM02/20/2302/27/23

Based on the table above, here are some examples of using YEARDAY in a sheet:

=YEARDAY([Ship Date]1)Returns the number of days in to the year for the date from row 1 of the Ship Date column.46
=IF(YEARDAY([Ship Date]2) < 182, "First Half of Year", "Second Half of Year")Returns the string First Half of Year if the number of days in the year for the date from row 2 of the Ship Date column is less than 182. Otherwise, the function returns Second Half of Year. First Half of Year
=ROUND([Units Sold]3 / YEARDAY([Order Date]3), 2) + “Avg jackets units sold each day”Divides the value in row 3 of the Units Sold column by the number of days in the year for row 2 of the Ship Date column, returns the rounded result, and adds the string Avg Jacket units sold each day (with a space and period) to the end.4.25 Avg Jacket units sold each day.

Still need help?

Use the Formula Handbook template to find more support, resources, view 100+ formulas, a glossary of every function that you can practice working with in real time, and examples of commonly used and advanced formulas.

Find examples of how other Smartsheet customers use this function or ask about your specific use case in the Smartsheet online Community.

Ask the Community