How can I define date range criteria in SUMIF formula?

L

LisaR

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),D4:D25)

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??
 
B

Bob Phillips

A couple of ways

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

or

SUMPRODUCT(--(C4:C25>=--"2010-02-01"),--(C4:C25<--"2010-03-01"),D4:D25)

HTH

Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top