> 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.
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.
> If your date is in A1 and you have the Analysis Tookpak installed then
> =DAY(EOMONTH(A1,0))
[quoted text clipped - 13 lines]
>
> - Show quoted text -
Ivyleaf - 27 Mar 2008 08:07 GMT
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,
> If you don't have Analysis Toolpak installed (safer option) this
> should do it for you, assuming your date is in A1:
[quoted text clipped - 27 lines]
>
> - Show quoted text -
Bob Phillips - 27 Mar 2008 09:56 GMT
=N(DATE(YEAR(A1),MONTH(A1)+1,1)-DATE(YEAR(A1),MONTH(A1),1))

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
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,
> If you don't have Analysis Toolpak installed (safer option) this
> should do it for you, assuming your date is in A1:
[quoted text clipped - 33 lines]
>
> - Show quoted text -
David Biddulph - 27 Mar 2008 09:07 GMT
Or =DAY(DATE(YEAR(A1),MONTH(A1)+1,0))
--
David Biddulph
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" <T...@hotmail.com> wrote:
> If your date is in A1 and you have the Analysis Tookpak installed then
> =DAY(EOMONTH(A1,0))
[quoted text clipped - 20 lines]
>
> - Show quoted text -
Ivyleaf - 27 Mar 2008 09:34 GMT
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))
> --
[quoted text clipped - 36 lines]
>
> - Show quoted text -