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

Data Analysis

  • Chart Axes in Excel
  • Understanding Pivot Tables in Excel
  • How to create a Histogram in Excel
  • Get column name from index in Excel Table
  • How to add Trendline to a chart in Excel

References

  • Extract all partial matches in Excel
  • How to use Excel MATCH Function
  • How to retrieve first match between two ranges in Excel
  • Count rows that contain specific values in Excel
  • Multi-criteria lookup and transpose in Excel

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation allow uppercase only
  • Excel Data validation date in specific year
  • Excel Data validation allow weekday only
  • Excel Data validation exists in list

Display Days in month in Excel

by

This tutorial shows how to Display Days in month in Excel using example below.

To get the number of days in a given month from a date, you can use a formula based on the EOMONTH and DAY functions.

Formula

=DAY(EOMONTH(date,0))

Explanation

In the example shown, the formula in cell B5 is:

=DAY(EOMONTH(B5,0))

How this formula works

The DAY function returns the day component of a date.  The EOMONTH function returns the last day of the month for a given date. So, in this formula EOMONTH first returns a date corresponding to the last day of the month, and then DAY returns the date value for that date.

By definition, the value returned by DAY is always equal to the number of days in the month, since the date supplied to DAY is always the last day.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

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

  • How to use Excel NOT Function
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel FALSE Function
  • How to return blank in place of #DIV/0! error in Excel
  • How to use Excel OR Function

Date Time

  • Steps to create Dynamic calendar grid in Excel
  • Get last weekday in month in Excel
  • Basic timesheet formula with breaks in Excel
  • Add decimal hours to time in Excel
  • Get day from date in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • How to randomly assign data to groups in Excel
  • Calculate conditional mode with criteria in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers at uneven intervals in Excel

General

  • Count cells that do not contain many strings in Excel
  • How to generate random number between two numbers in Excel
  • How to create dynamic named range with INDEX in Excel
  • Subtotal by color in Excel
  • Share Excel data with Word documents
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning