Number of days in a month in Numbers
Hi all,
Is there a formula, that can return "number of days in a month"
thanks
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.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
Hi all,
Is there a formula, that can return "number of days in a month"
thanks
Here are two ways:
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