#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Sumif for Date Range

Hello-

Column A dates and Column C is what I want to sum. If the dates are between
1-1-07 and 1-31-07 I want to sum Column C. But I want to set up the formula
so I can change the month that is being summed easily. Here is my attempt to
do a sumif with a range:

=sumif(A:A,"=39141"&"<=39173",C:C)

It doesn't work, any help? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Sumif for Date Range

TRY:

=SUMPRODUCT(--(MONTH(A1:A100)=1),C1:C100)

=SUMPRODUCT(--(MONTH(A1:A100)=X1),C1:C100)

1=Jan, 2=Feb etc

X1 contains 1, 2 etc

Ranges cannot be whole columns (except Excel 2007)

"Raza" wrote:

Hello-

Column A dates and Column C is what I want to sum. If the dates are between
1-1-07 and 1-31-07 I want to sum Column C. But I want to set up the formula
so I can change the month that is being summed easily. Here is my attempt to
do a sumif with a range:

=sumif(A:A,"=39141"&"<=39173",C:C)

It doesn't work, any help? Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Sumif for Date Range

My sheet has more than one January, how do I sum January 07 only?

"Toppers" wrote:

TRY:

=SUMPRODUCT(--(MONTH(A1:A100)=1),C1:C100)

=SUMPRODUCT(--(MONTH(A1:A100)=X1),C1:C100)

1=Jan, 2=Feb etc

X1 contains 1, 2 etc

Ranges cannot be whole columns (except Excel 2007)

"Raza" wrote:

Hello-

Column A dates and Column C is what I want to sum. If the dates are between
1-1-07 and 1-31-07 I want to sum Column C. But I want to set up the formula
so I can change the month that is being summed easily. Here is my attempt to
do a sumif with a range:

=sumif(A:A,"=39141"&"<=39173",C:C)

It doesn't work, any help? Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Sumif for Date Range

One way:

=SUMPRODUCT(--(MONTH(A1:A100)=1),--(YEAR(A1:A100)=2007),C1:C100)

In article ,
Raza wrote:

My sheet has more than one January, how do I sum January 07 only?

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
Sumif with two criteria including a date range Ladyofthewhitecity Excel Discussion (Misc queries) 4 February 4th 07 09:53 AM
sumif() using range name Jeff Wimer Excel Worksheet Functions 1 October 18th 06 11:47 PM
SUMIF within date range as a function of today()'s date irvine79 Excel Worksheet Functions 8 August 6th 06 05:55 PM
How to use a range in SUMIF? bdddd Excel Worksheet Functions 7 February 14th 06 06:44 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


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