#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default summing

I have one column of dates and a second column of costs. How would I sum all
of the particular costs for a certain month.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default summing

Put Jan in D1, say, and this formula in E1:

=SUMPRODUCT(--(TEXT(A1:A1000,"mmm")=D1),B1:B1000)

Or, better still, put 'Jan-09 (with the apostrophe) in D1, and this
formula in E1:

=SUMPRODUCT(--(TEXT(A1:A1000,"mmm-yy")=D1),B1:B1000)

You need to put other months or month-year combinations in cells below
D1, then you can copy the formula in E1 down that column.

Hope this helps.

Pete

On Dec 11, 2:46*pm,
m wrote:
I have one column of dates and a second column of costs. How would I sum all
of the particular costs for a certain month.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default summing

Hi,

Try this

=SUMPRODUCT((MONTH(A1:A10)=12)*(YEAR(A1:A10)=2009) *(B1:B10))

Mike

" wrote:

I have one column of dates and a second column of costs. How would I sum all
of the particular costs for a certain month.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default summing

That's great. However, I would like to do the summing irrespective of the
year. I am trying to show a multi year trend with the data displayed only by
the month. In this case the total number of dollars spent a certain month
with five year spread. I don't care what the year is, only the cumulative
amount that was spent in each of the 12 months. I tried to remove the year
part of the statement but got an error message. I've never done array
calculations before, so consider me ignorant of how they operate.

Thanks

Samm

"Mike H" wrote:

Hi,

Try this

=SUMPRODUCT((MONTH(A1:A10)=12)*(YEAR(A1:A10)=2009) *(B1:B10))

Mike

" wrote:

I have one column of dates and a second column of costs. How would I sum all
of the particular costs for a certain month.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default summing

=SUMPRODUCT((MONTH(A1:A10)=12)*(YEAR(A1:A10)=2009 )*(B1:B10))
I tried to remove the year part of the
statement but got an error message.


Try this...

=SUMPRODUCT(--(MONTH(A1:A10)=12),B1:B10)

--
Biff
Microsoft Excel MVP


"
m wrote in message
...
That's great. However, I would like to do the summing irrespective of the
year. I am trying to show a multi year trend with the data displayed only
by
the month. In this case the total number of dollars spent a certain month
with five year spread. I don't care what the year is, only the cumulative
amount that was spent in each of the 12 months. I tried to remove the
year
part of the statement but got an error message. I've never done array
calculations before, so consider me ignorant of how they operate.

Thanks

Samm

"Mike H" wrote:

Hi,

Try this

=SUMPRODUCT((MONTH(A1:A10)=12)*(YEAR(A1:A10)=2009) *(B1:B10))

Mike

" wrote:

I have one column of dates and a second column of costs. How would I
sum all
of the particular costs for a certain month.



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
Summing WRC Excel Worksheet Functions 4 November 5th 07 11:15 PM
Summing Lisa S. Excel Worksheet Functions 11 August 29th 07 05:56 PM
summing Catherine Excel Worksheet Functions 3 June 6th 07 04:28 PM
PivotTable and summing/not summing ~*Amanda*~[_2_] Excel Discussion (Misc queries) 1 March 14th 07 07:35 PM
Help with summing Carl Brehm Excel Worksheet Functions 3 January 3rd 05 01:17 PM


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