DAY function

2016-05-09

This function will take a date in any format and return the day as an integer from 1 to 31. Numbers not formatted as a date will return a day value as long as the number is in the range 1 to 2,958,465 as this corresponds to the date range 01/01/1900 to 31/12/9999.

Syntax

DAY(Date)

  • Date (required) – This is the date value that you want to return the day from.

Example

In this example we use the function on several dates in different formats. Notice the text values we try result in a #VALUE! error while numerical values outside of the range 1 to 2,958,465 result in a #NUM! error.

=DAY(A2)

DAY DAY function

About the Author

John MacDougall

John MacDougall

John is a Microsoft MVP and freelance consultant and trainer specializing in Excel, Power BI, Power Automate, Power Apps and SharePoint. You can find other interesting articles from John on his blog or YouTube channel.

Subscribe

Advertisement

Related Articles

NOW function

This function will return the current date and time. Syntax NOW() There are no...

read more

DAYS function

This function will allow you to find the number of days between two dates....

read more

Comments

0 Comments

Submit a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get The Latest News

Follow Us

Follow us on social media to stay up to date with the latest tips in Excel!

Pin It on Pinterest

Share This