#1   Report Post  
RayG
 
Posts: n/a
Default SUMIF USING DATES

HI,

I need to sum a colum of numbers in cells M5:M33 if it is between the dates
1/1/05 and 1/31/05 dates are in cells C5:C33.
In other words in January.

THANKS
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=SUMIF($M$5:$M$33,"="&A5)-SUMIF($M$5:$M$33,""&B5)

where A5 houses 1/1/05 and B5 either 1/31/05 or the formula:

=DATE(YEAR(A5),MONTH(A5)+1,0)


RayG wrote:
HI,

I need to sum a colum of numbers in cells M5:M33 if it is between the dates
1/1/05 and 1/31/05 dates are in cells C5:C33.
In other words in January.

THANKS

  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Correction...

=SUMIF($C$5:$C$33,"="&A5,$M$5:$M$33)-SUMIF($C$5:$C$33,""&B5,$M$5:$M$33)

where A5 houses 1/1/05 and B5 either 1/31/05 or the formula:

=DATE(YEAR(A5),MONTH(A5)+1,0)

Aladin Akyurek wrote:
=SUMIF($M$5:$M$33,"="&A5)-SUMIF($M$5:$M$33,""&B5)

where A5 houses 1/1/05 and B5 either 1/31/05 or the formula:

=DATE(YEAR(A5),MONTH(A5)+1,0)


RayG wrote:

HI,

I need to sum a colum of numbers in cells M5:M33 if it is between the
dates 1/1/05 and 1/31/05 dates are in cells C5:C33.
In other words in January.

THANKS

  #5   Report Post  
Paulw2k
 
Posts: n/a
Default

Use

=SUMPRODUCT((MONTH(C5:C33)=1)*(M5:M33))





"RayG" wrote in message
...
HI,

I need to sum a colum of numbers in cells M5:M33 if it is between the
dates
1/1/05 and 1/31/05 dates are in cells C5:C33.
In other words in January.

THANKS



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
grouping dates by week/month/etc. on cat. axis Kamal Hood Charts and Charting in Excel 4 January 23rd 05 10:06 AM
Ploting dates against a calendar and not as a simple events Barb Reinhardt Charts and Charting in Excel 2 January 22nd 05 02:41 AM
I get wrong dates when i paste from a different sheet into a new s mmollat Excel Discussion (Misc queries) 2 January 6th 05 07:35 PM
Filtering with dates T Excel Discussion (Misc queries) 1 December 29th 04 07:01 PM
have dates entered from a list of data into an excel template Diane Excel Discussion (Misc queries) 1 December 28th 04 06:33 PM


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