A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

last day of month



 
 
Thread Tools Display Modes
  #1  
Old September 17th, 2003, 10:18 AM
Radeesh
external usenet poster
 
Posts: n/a
Default last day of month

Hi

I am using a formula to get a sum amounts between the first of the month and
the last day of the month. I am using 29 as the last day of the month.
months run from August to April.

=SUMIF(G$5:G$32,"="&DATE(YEAR($A34),MONTH($A34),1 ),H$5:H$32)-SUMIF(G$5:G$32
,""&DATE(YEAR($A34),MONTH($A34),29),H$5:H$32)

TIA

Radeesh


  #2  
Old September 17th, 2003, 01:23 PM
Ron Rosenfeld
external usenet poster
 
Posts: n/a
Default last day of month

On Wed, 17 Sep 2003 14:48:38 +0530, "Radeesh" wrote:

Hi

I am using a formula to get a sum amounts between the first of the month and
the last day of the month. I am using 29 as the last day of the month.
months run from August to April.

=SUMIF(G$5:G$32,"="&DATE(YEAR($A34),MONTH($A34), 1),H$5:H$32)-SUMIF(G$5:G$32
,""&DATE(YEAR($A34),MONTH($A34),29),H$5:H$32)

TIA

Radeesh


And what is your problem?

If you want to use the actual last day of the month, you could define it as:

DATE(YEAR($A34),MONTH($A34)+1,0)


--ron
  #3  
Old September 17th, 2003, 02:26 PM
Radeesh
external usenet poster
 
Posts: n/a
Default last day of month

I was looking to use the actual last date as some amounts are on 30th & 31
st in some rows.

Thank you Ron

Radeesh


"Ron Rosenfeld" wrote in message
...
On Wed, 17 Sep 2003 14:48:38 +0530, "Radeesh"

wrote:

Hi

I am using a formula to get a sum amounts between the first of the month

and
the last day of the month. I am using 29 as the last day of the month.
months run from August to April.


=SUMIF(G$5:G$32,"="&DATE(YEAR($A34),MONTH($A34), 1),H$5:H$32)-SUMIF(G$5:G$3

2
,""&DATE(YEAR($A34),MONTH($A34),29),H$5:H$32)

TIA

Radeesh


And what is your problem?

If you want to use the actual last day of the month, you could define it

as:

DATE(YEAR($A34),MONTH($A34)+1,0)


--ron



  #4  
Old September 18th, 2003, 02:26 AM
Ron Rosenfeld
external usenet poster
 
Posts: n/a
Default last day of month

On Wed, 17 Sep 2003 18:56:08 +0530, "Radeesh" wrote:

I was looking to use the actual last date as some amounts are on 30th & 31
st in some rows.

Thank you Ron

Radeesh


Then that formula I posted should work. It takes advantage of the fact that
Excel interprets the 0th day of a month as the last day of the previous month.


--ron
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:25 PM.


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