---
title: "Days in the month with DAY and EOMONTH | PracticeExcel"
description: "Practice DAY and EOMONTH in a live spreadsheet: find the number of days in a month, leap years included."
canonical_url: "https://practiceexcelonline.com/practice/edate-eomonth/days-in-month"
locale: en
meta:
  "og:description": "Practice DAY and EOMONTH in a live spreadsheet: find the number of days in a month, leap years included."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Days%2Bin%2Bthe%2Bmonth%2Bwith%2BDAY%2Band%2BEOMONTH%2Cdescription_~UHJhY3RpY2UgREFZIGFuZCBFT01PTlRIIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogZmluZCB0aGUgbnVtYmVyIG9mIGRheXMgaW4gYSBtb250aCwgbGVhcCB5ZWFycyBpbmNsdWRlZC4%2Ceyebrow_EDATE%2Band%2BEOMONTH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiTW92ZS1pbiBkYXRlIiwiRGF5cyBpbiBtb250aCJdfSx7Im4iOjIsImNlbGxzIjpbIkZlYiAxMCwgMjAyNCIsIiJdfV0sInRhcmdldCI6WzEsMV19fQ%2Cp_Ii9wcmFjdGljZS9lZGF0ZS1lb21vbnRoL2RheXMtaW4tbW9udGgi%2Cs__d4PyM0Xrf596hbZ.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Days in the month with DAY and EOMONTH | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Days%2Bin%2Bthe%2Bmonth%2Bwith%2BDAY%2Band%2BEOMONTH%2Cdescription_~UHJhY3RpY2UgREFZIGFuZCBFT01PTlRIIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogZmluZCB0aGUgbnVtYmVyIG9mIGRheXMgaW4gYSBtb250aCwgbGVhcCB5ZWFycyBpbmNsdWRlZC4%2Ceyebrow_EDATE%2Band%2BEOMONTH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiTW92ZS1pbiBkYXRlIiwiRGF5cyBpbiBtb250aCJdfSx7Im4iOjIsImNlbGxzIjpbIkZlYiAxMCwgMjAyNCIsIiJdfV0sInRhcmdldCI6WzEsMV19fQ%2Cp_Ii9wcmFjdGljZS9lZGF0ZS1lb21vbnRoL2RheXMtaW4tbW9udGgi%2Cs__d4PyM0Xrf596hbZ.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **Days in the month with DAY and EOMONTH**

**Premium**

To prorate the first month's rent you need the number of days in the move-in month. In B2, take the day number of the month's last day, DAY(EOMONTH(A2,0)).

B2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Move-in date | Days in month |  |  |  | |
| 2 | Feb 10, 2024 |  |  |  |  | |
| 3 |  |  |  |  |  | |
| 4 |  |  |  |  |  | |
| 5 |  |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

**Premium lesson**

## **Unlock EDATE and EOMONTH and every other lesson**

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:**NETWORKDAYS, WORKDAY and WEEKDAY****DATEDIF**

It comes up in this mock test: [**Excel test for accounting and bookkeeping**](https://practiceexcelonline.com/tests/excel-test-for-accountants)

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/edate-eomonth/days-in-month)

Need help?

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/practice/edate-eomonth/days-in-month#webpage","description":"Practice DAY and EOMONTH in a live spreadsheet: find the number of days in a month, leap years included.","name":"Days in the month with DAY and EOMONTH","url":"https://practiceexcelonline.com/practice/edate-eomonth/days-in-month","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/edate-eomonth/days-in-month#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/edate-eomonth/days-in-month#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/edate-eomonth/days-in-month"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/edate-eomonth/days-in-month#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"EDATE and EOMONTH","item":"https://practiceexcelonline.com/practice/edate-eomonth","position":3},{"@type":"ListItem","name":"Days in the month with DAY and EOMONTH","position":4}]},{"@id":"https://practiceexcelonline.com/practice/edate-eomonth/days-in-month#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I get the number of days in a month in Excel?","acceptedAnswer":{"@type":"Answer","text":"Use =DAY(EOMONTH(A2,0)). EOMONTH finds the last day of the month and DAY gives its day number."}},{"@id":"https://practiceexcelonline.com/practice/edate-eomonth/days-in-month#/schema/learning-resource/1","@type":"LearningResource","description":"Practice DAY and EOMONTH in a live spreadsheet: find the number of days in a month, leap years included.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Days in the month with DAY and EOMONTH","teaches":"EDATE and EOMONTH"},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
