Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AKM
 
Posts: n/a
Default sumif date is in certain month

I need to sum currency when the corresponding date is in a certain month. I
can not figure out the formula. For example:
SUMIF(D2:D20,"5/31/05, <6/30/05",C2:C20)
When the date in D is in the month of June, add the amount in C. I think
the problem is in the calculation of the month. I have tried every thing I
can think of, including using the (=MONTH).
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

=SUMIF(D2:D20,"5/31/05",C2:C20) - SUMIF(D2:D20,"=6/30/05",C2:C20)

Another:

=SUMPRODUCT(--(D2:D20DATE(2005,5,31)),--(D2:D20<DATE(2005,6,30)),
C2:C20)




In article ,
AKM wrote:

I need to sum currency when the corresponding date is in a certain month. I
can not figure out the formula. For example:
SUMIF(D2:D20,"5/31/05, <6/30/05",C2:C20)
When the date in D is in the month of June, add the amount in C. I think
the problem is in the calculation of the month. I have tried every thing I
can think of, including using the (=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
How do I copy only the month from a date CCW Excel Worksheet Functions 2 April 15th 05 02:26 AM
Lookup the month in a date string 01/03/05 Una Excel Worksheet Functions 1 March 30th 05 09:45 AM
Count the occurances of a month in a range of date fields Keith Brown Excel Worksheet Functions 8 March 14th 05 11:24 AM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
Return the end of month date from a date Steve F. Excel Worksheet Functions 3 October 28th 04 06:17 PM


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