sumproduct for month and year

G

Guest

Hi,

I am trying use sumproduct to add totals for a month when the criteria or
date column is in the date format mm/dd/yyyy.

For example the month column could have the following dates

06/04/2006
06/17/2006
06/21/2006
07/12/2006
07/18/2006
08/16/2006
08/24/2006
08/31/2006

I need to get the totals for the month 06/2006, 07/2006, and 08/2006

Thanks for your help.
 
D

Dave Peterson

=sumproduct(--text(a1:a100,"yyyymm")="200606"),b1:b100)

Adjust the range, but don't use the whole column.
 

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