#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Days in a month

Is there a formula that can populate how many days there are in a month? i.e.
31 days in January, 28 days in February, and so on
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Days in a month

With a date in cell A1 try the below formula
=DAY(DATE(YEAR(A1),MONTH(A1)+1,0))

If this post helps click Yes
---------------
Jacob Skaria


"helpforwork" wrote:

Is there a formula that can populate how many days there are in a month? i.e.
31 days in January, 28 days in February, and so on

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Days in a month

If you have a date in a cell:

=DAY(EOMONTH(A1,0))

The EOMONTH function requires the Analysis ToolPak add-in be installed in
Excel versions prior to Excel 2007. If you
enter the formula and get a #NAME? error look in Excel help for the EOMONTH
function. It'll tell you how to fix the problem.

--
Biff
Microsoft Excel MVP


"helpforwork" wrote in message
...
Is there a formula that can populate how many days there are in a month?
i.e.
31 days in January, 28 days in February, and so on



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Days in a month

On Fri, 9 Oct 2009 07:49:01 -0700, helpforwork
wrote:

Is there a formula that can populate how many days there are in a month? i.e.
31 days in January, 28 days in February, and so on


With some date in A1:

=DAY(A1-DAY(A1)+32-DAY(A1-DAY(A1)+32))

Format result as General, or Number
--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel to make the days cary over month to month automaticly GARY New Users to Excel 1 April 19th 08 06:05 PM
Number of days in month counted from shortened name of month & yea Tumar Excel Worksheet Functions 6 September 18th 07 03:36 PM
Days per month for calculating storage days Bart Excel Worksheet Functions 3 January 31st 07 06:40 PM
function to fill all days of month to end of month Monique Excel Worksheet Functions 11 May 1st 06 07:39 PM
function to fill all days of month to end of month YaHootie Excel Worksheet Functions 10 May 1st 06 06:01 AM


All times are GMT +1. The time now is 04:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"