Month Totals... (1 Viewer)

GUIDO22

Registered User.
Local time
Today, 23:39
Joined
Nov 2, 2003
Messages
515
I have a list of thousands of rows containing sets of daily records each with a datestamp...

1/1/2012
1/1/2012
1/1/2012
1/1/2012
2/1/2012
2/1/2012
3/1/2012
3/1/2012
3/1/2012
......n

I wish to deteremine the totals for each MONTH... so how would I create cells that contain totals for each month of records..... how do I do this...?

THanks in advance...
 

namliam

The Mailman - AWF VIP
Local time
Tomorrow, 00:39
Joined
Aug 11, 2003
Messages
11,695
try using the format function ...
 

GUIDO22

Registered User.
Local time
Today, 23:39
Joined
Nov 2, 2003
Messages
515
try using the format function ...

Any chance of a sample showing the use of FORMAT over a range of cells please...?
 

namliam

The Mailman - AWF VIP
Local time
Tomorrow, 00:39
Joined
Aug 11, 2003
Messages
11,695
Well you cant use functions for ranges... you first make a month per line.
Then use a sumif or cross tab to make totals.
 

Rx_

Nothing In Moderation
Local time
Today, 16:39
Joined
Oct 22, 2009
Messages
2,803
Image of the sumproduct formula where the month is based on a number.
Just threw together March/ April random numbers.
On the top two, the totals 20 and 330 represent the totals in dates March and April.

The A3:A97 are hard coded. A Named range could be used.
This example works for 2 months, it could be expanded to 12 months, but the years would add up all months that match.

Is this along the line of your question?
 

Attachments

  • Monthly Sum.jpg
    Monthly Sum.jpg
    47.3 KB · Views: 113

GUIDO22

Registered User.
Local time
Today, 23:39
Joined
Nov 2, 2003
Messages
515
Image of the sumproduct formula where the month is based on a number.
Just threw together March/ April random numbers.
On the top two, the totals 20 and 330 represent the totals in dates March and April.

The A3:A97 are hard coded. A Named range could be used.
This example works for 2 months, it could be expanded to 12 months, but the years would add up all months that match.

Is this along the line of your question?

That is EXACTLY what I needed. Thank you very much:)!
 

GUIDO22

Registered User.
Local time
Today, 23:39
Joined
Nov 2, 2003
Messages
515
=COUNTIFS(MONTH($B$6:$B$2057),"=2",$J$6:$J$2057,"=1")

In a similar way I wish to count the occurences of February, where the 'J' column range contains a 1.... but Excel doesnt like this....any idea how I could that please..?
 

Brianwarnock

Retired
Local time
Today, 23:39
Joined
Jun 2, 2003
Messages
12,701
Again use Sumproduct

Sumproduct((month(b6:b2057)=2)*(j6:j2057=1))

Give or take the odd syntax error as it's been a few years.

Brian
 

Users who are viewing this thread

Top Bottom