Excel DAY Function

This Excel Tutorial demonstrates how to use the Excel DAY Function in Excel to get the day of the month, with formula examples.

DAY Function Description:

The DAY Function Returns the day as a number (1-31) from a date.

Formula Examples:

day function examples

Example Formula Result
Any Date =DAY(C5) 5
Date & Time =DAY(C6) 22

Syntax and Arguments:

The Syntax for the DAY Formula is:

Function Arguments ( Inputs ):

serial_number – The date in Excel serial number format or entered as a date with quotations (“s) surround the date. Example: You can not enter 11/12/2015 directly into the cell. Instead you need to enter “11/12/2015” or you would need to use the corresponding serial number: 42320. Alternatively, you can reference a cell with the date 11/12/2015 entered. Excel automatically converts dates stored in cells into serial format (unless the date is entered as text).

Additional Notes

Use the DAY Function to return the number for the day of the month. Enter any date, serial number, or date stored as text.

DAY Examples in VBA

You can also use the DAY function in VBA. Type:
For the function arguments (serial_number, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

How to use the DAY Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:
After entering it in the cell, notice how the AND formula inputs appear below the cell:
day formula syntax
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=DAY(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
how to use the day function in excel

For more information about the DAY Formula visit the
Microsoft Website.

Posted in