A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can I define date range criteria in SUMIF formula?



 
 
Thread Tools Display Modes
  #1  
Old February 11th, 2010, 07:55 AM posted to microsoft.public.excel.worksheet.functions
LisaR
external usenet poster
 
Posts: 14
Default How can I define date range criteria in SUMIF formula?

Hi,

I am trying to use excel to forecast payments owing in each month. If column
A is a list of dates and column B the amounts owing how can I set up the
SUMIF formula to provide, for example, the sum of all amounts owing in
February 2010?

I can get it to return a figure owing on a specific date:
=SUMIF(C4:C25,DATE(2010,1,31),D425)

However find I cannot get the right criteria for a range of dates (ie a
month). Have tried for eg =DATE(2010,1,31) and this brings no result...

What am I doing wrong??


  #2  
Old February 11th, 2010, 08:13 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default How can I define date range criteria in SUMIF formula?

A couple of ways

=SUMIF(C4:C25,"="&DATE(2010,2,1),D425)-SUMIF(C4:C25,"="&DATE(2010,3,1),D425)

or

SUMPRODUCT(--(C4:C25=--"2010-02-01"),--(C4:C25--"2010-03-01"),D425)

HTH

Bob

"LisaR" wrote in message
...
Hi,

I am trying to use excel to forecast payments owing in each month. If
column
A is a list of dates and column B the amounts owing how can I set up the
SUMIF formula to provide, for example, the sum of all amounts owing in
February 2010?

I can get it to return a figure owing on a specific date:
=SUMIF(C4:C25,DATE(2010,1,31),D425)

However find I cannot get the right criteria for a range of dates (ie a
month). Have tried for eg =DATE(2010,1,31) and this brings no result...

What am I doing wrong??




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:17 PM.


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