Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=DAY(EOMONTH(A2,0))Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
Yes. EOMONTH always calculates the true last day of the month, so February returns 29 in leap years and 28 otherwise.
Wrap it in DATEVALUE: =DAY(EOMONTH(DATEVALUE(A2),0)) to convert text to a proper date first.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: