Number of days in a month in Numbers

Hi all,

Is there a formula, that can return "number of days in a month"


thanks

Posted on Jun 17, 2015 2:26 AM

Reply
2 replies

Jun 17, 2015 4:25 AM in response to inout

Here are two ways:


User uploaded file


Method 1 requires the "Month Num" column (which makes the formula a little easier to read):

cell C1 contains the year (since the number of days changes by year).


rows 1 and two are header rows


C3=EOMONTH(DATE($C$1, B3, 1),0)−DATE($C$1, B3, 1)

this is shorthand for... select cell C3, then type (or copy and paste from here) the formula:

=EOMONTH(DATE($C$1, B3, 1),0)−DATE($C$1, B3, 1)


select cell C3, copy

select cells C3 thru C14, paste


If you do not want to have the "Month Num" column (column B) you can use Method 2:

D3=EOMONTH(DATE($C$1, ROW()−2, 1),0)−DATE($C$1, ROW()−2, 1)

fill down like before


the function EOMONTH() returns the End Of MONTH date. the subtraction of two dates is a duration.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Number of days in a month in Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.