Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FGOMEZ
 
Posts: n/a
Default Fuction that gives number of days of a given month

I am just wondering if there is a function that gives you the number days of
the month for a given date.

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Fuction that gives number of days of a given month

Assuming that A1 contains a date, such as 2/15/06, try...

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

Hope this helps!

In article ,
"FGOMEZ" wrote:

I am just wondering if there is a function that gives you the number days of
the month for a given date.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default Fuction that gives number of days of a given month

Hi

With Analysis Toolpack installed
=DAY(EOMONTH(YourDate,0))

Without Analysis Toolpack
=DAY(DATE(YEAR(YourDate),MONTH(YourDate)+1,0))


Arvi Laanemets



"FGOMEZ" wrote in message
...
I am just wondering if there is a function that gives you the number days

of
the month for a given date.

Thanks





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FGOMEZ
 
Posts: n/a
Default Fuction that gives number of days of a given month

It helped really well.

Thanks so much Domenic

"Domenic" wrote in message
...
Assuming that A1 contains a date, such as 2/15/06, try...

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

Hope this helps!

In article ,
"FGOMEZ" wrote:

I am just wondering if there is a function that gives you the number

days of
the month for a given date.

Thanks



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
Show week number in current month DKerr Excel Discussion (Misc queries) 4 February 23rd 06 09:20 PM
Formula to calculate number of days & ignore blank cells Mifty Excel Discussion (Misc queries) 7 February 13th 06 10:36 PM
convert dates to number of days milk0s Excel Worksheet Functions 2 September 28th 05 01:31 PM
Calculate running target by days in the month Robert Excel Worksheet Functions 2 July 4th 05 06:14 AM
Formula for current month minus one = Quarter number in a macro. Pank Excel Discussion (Misc queries) 11 June 22nd 05 02:47 PM


All times are GMT +1. The time now is 07:17 PM.

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

About Us

"It's about Microsoft Excel"