Sumif

  • Thread starter Thread starter Dennis
  • Start date Start date
D

Dennis

I have two columns... in one column, i have a list of
dates. in the other column, i have a $ amount.

I want to use the sumif function to sum the $ amounts
only if the date's month = a certain month.

I've tried doing sumif(arrayA, month(array) = 8, arrayB)
but that doesn't seem to work.

Thanks in advance.
 
Hi Dennis

Try...
=SUMPRODUCT((MONTH(A1:A29)=2)*B1:B29)

Note the above formula will return values for February of all years in your
range -
to restrict it further to a specific year try...
=SUMPRODUCT((MONTH(A1:A29)=2)*(YEAR(A1:A29)=2004)*B1:B29)

--
XL2002
Regards

William

(e-mail address removed)

| I have two columns... in one column, i have a list of
| dates. in the other column, i have a $ amount.
|
| I want to use the sumif function to sum the $ amounts
| only if the date's month = a certain month.
|
| I've tried doing sumif(arrayA, month(array) = 8, arrayB)
| but that doesn't seem to work.
|
| Thanks in advance.
 
Hi Dennis!

Try this to sum all amounts that correspond to August:

=SUMPRODUCT(--(MONTH(A1:A10)=8),B1:B10)

Biff
 

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

Similar Threads

sumif color cells with same month 1
Sumif formula 4
Filtering with SUMIFS 1
sumifs function 3
Complex Sumif 6
Summing negative dollar amounts conditional to dates 4
Sumif comparing dates in criteria 1
SUMIF. 1

Back
Top