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

I have a spreadsheet that looks something like:

Row A 1/1/07 1/2/07 1/3/07 .... 12/31/07
Row B 4 2 5 .... 9

I would like to sum everthing in row B within a certain month. I have tried:

=SUMPRODUCT(Month(A1:A365)=1,B1:B365)

This is not working. Would someone tell me what I'm missing?

Thanks so much.
Ellen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default SUMPRODUCT

=sumproduct() likes numbers:

=SUMPRODUCT(--(Month(A1:A365)=1),B1:B365)

But be careful. An empty cell will look like it has a month() of january.

=SUMPRODUCT(--(Month(A1:A365)=1),--(a1:a365<""),B1:B365)
might be better.

Ellen G wrote:

I have a spreadsheet that looks something like:

Row A 1/1/07 1/2/07 1/3/07 .... 12/31/07
Row B 4 2 5 .... 9

I would like to sum everthing in row B within a certain month. I have tried:

=SUMPRODUCT(Month(A1:A365)=1,B1:B365)

This is not working. Would someone tell me what I'm missing?

Thanks so much.
Ellen


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default SUMPRODUCT

Okay -- sorry. I typed the formula in my original message incorrectly. Here
is the type of formula I've actually been using that is not working:

=SUMPRODUCT(Month(A1:Z1)=1,A2:Z2)

What am I doing wrong???

Ellen

"Ellen G" wrote:

I have a spreadsheet that looks something like:

Row A 1/1/07 1/2/07 1/3/07 .... 12/31/07
Row B 4 2 5 .... 9

I would like to sum everthing in row B within a certain month. I have tried:

=SUMPRODUCT(Month(A1:A365)=1,B1:B365)

This is not working. Would someone tell me what I'm missing?

Thanks so much.
Ellen

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default SUMPRODUCT

Thanks so much, Dave. This helped a lot.

Ellen

"Dave Peterson" wrote:

=sumproduct() likes numbers:

=SUMPRODUCT(--(Month(A1:A365)=1),B1:B365)

But be careful. An empty cell will look like it has a month() of january.

=SUMPRODUCT(--(Month(A1:A365)=1),--(a1:a365<""),B1:B365)
might be better.

Ellen G wrote:

I have a spreadsheet that looks something like:

Row A 1/1/07 1/2/07 1/3/07 .... 12/31/07
Row B 4 2 5 .... 9

I would like to sum everthing in row B within a certain month. I have tried:

=SUMPRODUCT(Month(A1:A365)=1,B1:B365)

This is not working. Would someone tell me what I'm missing?

Thanks so much.
Ellen


--

Dave Peterson

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
SUMPRODUCT Tufail Excel Discussion (Misc queries) 2 June 17th 06 09:47 PM
Sumproduct John997 Excel Discussion (Misc queries) 1 September 30th 05 03:52 AM
Like Sumproduct, But Different ericsh Excel Worksheet Functions 6 August 11th 05 05:49 PM
Sumproduct Help Rob Excel Worksheet Functions 11 August 8th 05 10:00 PM
MAX/MIN with SUMPRODUCT [email protected] Excel Worksheet Functions 7 August 3rd 05 02:10 AM


All times are GMT +1. The time now is 08:06 AM.

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

About Us

"It's about Microsoft Excel"