What Is Days In Month In Google Sheets?
Days in month in Google sheets is a method to find the number of days in the datasheet. Unfortunately, there is no default days in a month function in Google sheets but we can find the number of days in a month or a given time period with the help of EOMONTH function in Google sheets.
Using DAY and EOMONTH functions, we can find the number of days in the current month, previous month or next month. For example, consider the below table showing date and sales in columns A and B, respectively.

Now, let us use the DAY and EOMONTH functions in Google sheets to find the number of days.
To start with, we need to insert the cell range in the data. In this example, the data is available in cell range A1:C2. Next, select the cell where we want to find the result. In this example, select the cell C2. Insert the DAY and EOMONTH formula. So, the complete formula is =DAY(EOMONTH(A2,0)). Press Enter key.
Now, we will be able to see the result in cell C2, as shown in the below image.

In this article, let us find the number of days using EOMONTH and DAY functions in Google sheets with detailed examples.
Key Takeaways
- Days in month in Google sheets is a method to find the number of days in a given dataset.
- Unfortunately, there is no default function named days in month in Google sheets.
- But users can find the number of days in Google sheets using DAY, EOMONTH and TODAY functions in Google sheets.
- To find the number of days in current month, we need to use EOMONTH and DAY functions.
- Similarly, we can find the number of days in Google sheets in previous or next months using a combination of EOMONTH & DAY functions and EOMONTH & TODAY functions, respectively.
How To Calculate Days In Month In Google Sheets?
We can find the number of days with the help of the following steps.
The steps are:
Step 1: To start with, we need to insert the cell range in the data. Next, select the cell where we want to find the result.
Step 2: Insert the DAY and EOMONTH formula.
Step 3: Press Enter key.
Now, we will be able to see the number of days in the active cell.
Likewise, we can calculate the number of days.
Syntax

The syntax or formula of DAY function is =DAY(date)
where date is the only argument showing the date which we want to extract from the data.
Similarly, we also use EOMONTH function formula to calculate the number of days.
Examples
Example #1 – Calculate Number Of Days In Current Month
For example, consider the below table showing date and sales in columns A and B, respectively.

Now, let us use the DAY and EOMONTH functions to find the number of days iin current month.
The steps are:
Step 1: To start with, we need to insert the cell range in the data. In this example, the data is available in cell range A1:C2. Next, select the cell where we want to find the result. In this example, select the cell C2.
Step 2: Insert the DAY and EOMONTH formula.
So, the complete formula is =DAY(EOMONTH(A2,0))

Step 3: Press Enter key.
Now, we will be able to see the result in cell C2, as shown in the below image.

Likewise, we can calculate the number of days in Google sheets.
Example #2 – Calculate Number Of Days In Previous Month
For example, consider the below table showing date in column A.

We need to find the previous month and number of days in column B and C, respectively.
Now, let us use the EOMONTH function in Google sheets to find the number of days in previous month.
The steps are:
Step 1: To start with, we need to insert the cell range in the data. In this example, the data is available in cell range A1:C2. Next, select the cell where we want to find the result. In this example, select the cell B2.
Step 2: Insert the EOMONTH formula in Google sheets.
So, the complete formula is =EOMONTH(A2,-1)

Step 3: Press Enter key.
Now, we will be able to see the result in cell B2, as shown in the below image.

Now, let us use DAY and EOMONTH functions to find the number of days.
Step 4: Enter the formula =DAY(EOMONTH(B2,0))

Step 5: Press Enter key.

Likewise, we can calculate the number of days in previous month in Google sheets.
Example #3 – Calculate Number Of Days In Next Month
For example, consider the below table showing date in column A.

We need to find the next month and number of days in column B and C, respectively.
Now, let us use the EOMONTH and TODAY functions in Google sheets to find the number of days in next month.
The steps are:
Step 1: To start with, we need to insert the cell range in the data. In this example, the data is available in cell range A1:C2. Next, select the cell where we want to find the result. In this example, select the cell B2.
Step 2: Insert the EOMONTH and TODAY formula in Google sheets.
So, the complete formula is =EOMONTH(TODAY()+15,12)

Step 3: Press Enter key.
Now, we will be able to see the result in cell B2, as shown in the below image.

Now, let us use DAY and EOMONTH functions to find the number of days.
Step 4: Enter the formula =DAY(EOMONTH(B2,0))

Step 5: Press Enter key.

Likewise, we can calculate the number of days in next month in Google sheets.
Example #4 – Calculate Number Of Days In Different Months
For example, consider the below table showing dates and number of days in columns A and B, respectively.

Now, we need to find the number of days in column B respectively.
Now, let us use the EOMONTH and DAY functions in Google sheets to find the number of days for the given data.
The steps are:
Step 1: To start with, we need to insert the cell range in the data. In this example, the data is available in cell range A1:B4. Next, select the cell where we want to find the result. In this example, select the cell B2.
Step 2: Insert the EOMONTH and DAY formula in Google sheets.
So, the complete formula is =DAY(EOMONTH(A2,0))

Step 3: Press Enter key.
Now, we will be able to see the result in cell B2, as shown in the below image.

Now, using AutoFill option, we can find the result in cells B3 and B4, as shown in the below image.

Likewise, we can calculate the number of days for a given data.
Important Things To Note
- DAY function helps users find the day of a month from a given data.
- EOMONTH Google sheets function calculates the last day of a month.
- Google sheets TODAY function finds the current date in the order, month, date and year.
Frequently Asked Questions (FAQs)
For example, consider the below table showing date and sales in columns A and B, respectively.
Now, let us use the DAY and EOMONTH functions to find the number of days.
The steps are:
Step 1: To start with, we need to insert the cell range in the data. In this example, the data is available in cell range A1:C2. Next, select the cell where we want to find the result. In this example, select the cell C2.
Step 2: Insert the DAY and EOMONTH formula in Google sheets.
So, the complete formula is =DAY(EOMONTH(A2,0))
Step 3: Press Enter key.
Now, we will be able to see the result in cell C2, as shown in the below image.
Likewise, we can calculate the number of days in Google sheets.
In Google sheets, there is no default function such as days in month. To find or calculate the number of days in a month, we need to use DAY, EOMONTH and TODAY functions in Google sheets in a combination or individual functions to find the number of days in current month, previous or next months.
The formula or syntax of EOMONTH function in Google sheets is =EOMONTH(start_date,months)
where,
• start_date refers to the starting date in a cell range to find the number of days
• months is the number of months which we can add or subtract to find the desired result
Download Template
This article must help understand Days In Month In Google Sheets with its formulas and examples. You can download the template here to use it instantly.
Recommeded Articles
Guide to What Is Days In Month In Google Sheets. Here we learn how to use Days In Month In Google Sheets with examples and points to remember. You can learn more from the following articles. –
Bullet Points In Google Sheets
Leave a Reply