Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
Question marked as Top-ranking reply

Posted on Jun 17, 2015 8:15 AM

And a third way that, given any date, calculates the number of days in that month.


Thus, if you fill the month names down the column and Numbers uses its smart date recognition to store them as dates, then this also works:


User uploaded file



=DAY(DATE(YEAR(A1),MONTH(A1)+1,1)−1)


SG

2 replies
Question marked as Top-ranking reply

Jun 17, 2015 8:15 AM in response to inout

And a third way that, given any date, calculates the number of days in that month.


Thus, if you fill the month names down the column and Numbers uses its smart date recognition to store them as dates, then this also works:


User uploaded file



=DAY(DATE(YEAR(A1),MONTH(A1)+1,1)−1)


SG

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.

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.