Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PVS PVS is offline
external usenet poster
 
Posts: 1
Default Calculate days in each month

Exel 2002. Vista Home Premium. Is there a function that will calculate the
total number of days in each month. I need to average totals against the
number of days in each month. For example, $40,000 / number of days in the
month. I would like to make it a formula so I can copy it rather than have to
manually enter the number of days in each month.
--
Thanks for any help offered.

PVS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default Calculate days in each month

These examples might help you.

=DAY(EOMONTH(TODAY(),0)) Returns 31 which is the last day of current month

=DAY(EOMONTH("2 feb 2008",0)) Returns 29 (Might need "Feb 2 2008"
depending on your system date format)

=DAY(EOMONTH("2/2/2008",0)) Returns 29

=DAY(EOMONTH(D5,0)) Use where D5 is an actual date.

Note the Zero parameter is current month. Use 1 for last day of next month ,
2 for month after that etc.

--
Regards,

OssieMac


"PVS" wrote:

Exel 2002. Vista Home Premium. Is there a function that will calculate the
total number of days in each month. I need to average totals against the
number of days in each month. For example, $40,000 / number of days in the
month. I would like to make it a formula so I can copy it rather than have to
manually enter the number of days in each month.
--
Thanks for any help offered.

PVS

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Calculate days in each month

If your date is in A1 and you have the Analysis Tookpak installed then
=DAY(EOMONTH(A1,0))

Tyro

"PVS" wrote in message
...
Exel 2002. Vista Home Premium. Is there a function that will calculate the
total number of days in each month. I need to average totals against the
number of days in each month. For example, $40,000 / number of days in the
month. I would like to make it a formula so I can copy it rather than have
to
manually enter the number of days in each month.
--
Thanks for any help offered.

PVS



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 141
Default Calculate days in each month

If you don't have Analysis Toolpak installed (safer option) this
should do it for you, assuming your date is in A1:

=DATE(YEAR(A1),MONTH(A1)+1,1)-DATE(YEAR(A1),MONTH(A1),1)

Cheers,
Ivan.

On Mar 27, 4:07*pm, "Tyro" wrote:
If your date is in A1 and you have the Analysis Tookpak installed then
=DAY(EOMONTH(A1,0))

Tyro

"PVS" wrote in message

...



Exel 2002. Vista Home Premium. Is there a function that will calculate the
total number of days in each month. I need to average totals against the
number of days in each month. For example, $40,000 / number of days in the
month. I would like to make it a formula so I can copy it rather than have
to
manually enter the number of days in each month.
--
Thanks for any help offered.


PVS- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 141
Default Calculate days in each month

Note that Excel will probably try to display the result of this
formula as a date, in which case just reformat the cell as 'General'.

Cheers,

On Mar 27, 6:04*pm, Ivyleaf wrote:
If you don't have Analysis Toolpak installed (safer option) this
should do it for you, assuming your date is in A1:

=DATE(YEAR(A1),MONTH(A1)+1,1)-DATE(YEAR(A1),MONTH(A1),1)

Cheers,
Ivan.

On Mar 27, 4:07*pm, "Tyro" wrote:



If your date is in A1 and you have the Analysis Tookpak installed then
=DAY(EOMONTH(A1,0))


Tyro


"PVS" wrote in message


...


Exel 2002. Vista Home Premium. Is there a function that will calculate the
total number of days in each month. I need to average totals against the
number of days in each month. For example, $40,000 / number of days in the
month. I would like to make it a formula so I can copy it rather than have
to
manually enter the number of days in each month.
--
Thanks for any help offered.


PVS- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Calculate days in each month

=N(DATE(YEAR(A1),MONTH(A1)+1,1)-DATE(YEAR(A1),MONTH(A1),1))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Ivyleaf" wrote in message
...
Note that Excel will probably try to display the result of this
formula as a date, in which case just reformat the cell as 'General'.

Cheers,

On Mar 27, 6:04 pm, Ivyleaf wrote:
If you don't have Analysis Toolpak installed (safer option) this
should do it for you, assuming your date is in A1:

=DATE(YEAR(A1),MONTH(A1)+1,1)-DATE(YEAR(A1),MONTH(A1),1)

Cheers,
Ivan.

On Mar 27, 4:07 pm, "Tyro" wrote:



If your date is in A1 and you have the Analysis Tookpak installed then
=DAY(EOMONTH(A1,0))


Tyro


"PVS" wrote in message


...


Exel 2002. Vista Home Premium. Is there a function that will calculate
the
total number of days in each month. I need to average totals against
the
number of days in each month. For example, $40,000 / number of days in
the
month. I would like to make it a formula so I can copy it rather than
have
to
manually enter the number of days in each month.
--
Thanks for any help offered.


PVS- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Calculate days in each month

Or =DAY(DATE(YEAR(A1),MONTH(A1)+1,0))
--
David Biddulph

"Ivyleaf" wrote in message
...
If you don't have Analysis Toolpak installed (safer option) this
should do it for you, assuming your date is in A1:

=DATE(YEAR(A1),MONTH(A1)+1,1)-DATE(YEAR(A1),MONTH(A1),1)

Cheers,
Ivan.

On Mar 27, 4:07 pm, "Tyro" wrote:
If your date is in A1 and you have the Analysis Tookpak installed then
=DAY(EOMONTH(A1,0))

Tyro

"PVS" wrote in message

...



Exel 2002. Vista Home Premium. Is there a function that will calculate
the
total number of days in each month. I need to average totals against the
number of days in each month. For example, $40,000 / number of days in
the
month. I would like to make it a formula so I can copy it rather than
have
to
manually enter the number of days in each month.
--
Thanks for any help offered.


PVS- Hide quoted text -


- Show quoted text -



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 141
Default Calculate days in each month

Nice one David. I knew there should be one step simpler. I hate
relying on addins... nice to see something just as easy without them.

Ivan.

On Mar 27, 7:07*pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
Or =DAY(DATE(YEAR(A1),MONTH(A1)+1,0))
--
David Biddulph

"Ivyleaf" wrote in message

...
If you don't have Analysis Toolpak installed (safer option) this
should do it for you, assuming your date is in A1:

=DATE(YEAR(A1),MONTH(A1)+1,1)-DATE(YEAR(A1),MONTH(A1),1)

Cheers,
Ivan.

On Mar 27, 4:07 pm, "Tyro" wrote:



If your date is in A1 and you have the Analysis Tookpak installed then
=DAY(EOMONTH(A1,0))


Tyro


"PVS" wrote in message


...


Exel 2002. Vista Home Premium. Is there a function that will calculate
the
total number of days in each month. I need to average totals against the
number of days in each month. For example, $40,000 / number of days in
the
month. I would like to make it a formula so I can copy it rather than
have
to
manually enter the number of days in each month.
--
Thanks for any help offered.


PVS- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Calculate days in each month

On Wed, 26 Mar 2008 21:40:01 -0700, PVS wrote:

Exel 2002. Vista Home Premium. Is there a function that will calculate the
total number of days in each month. I need to average totals against the
number of days in each month. For example, $40,000 / number of days in the
month. I would like to make it a formula so I can copy it rather than have to
manually enter the number of days in each month.


I think this may be the shortest, so far:

=32-DAY(A1-DAY(A1)+32)
--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
How to calculate days in the month RJ Swain Excel Discussion (Misc queries) 5 February 20th 08 12:41 PM
Calculate Number of Days in a Month Gary T Excel Worksheet Functions 3 November 21st 07 04:21 PM
How to calculate a date: first day of the month after 60 days Claudia Excel Discussion (Misc queries) 12 June 28th 07 05:10 AM
Calculate Days in a Month LGG Excel Discussion (Misc queries) 6 January 13th 06 06:31 PM
Calculate running target by days in the month Robert Excel Worksheet Functions 2 July 4th 05 06:14 AM


All times are GMT +1. The time now is 02:16 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"