Formula still needed! Help!

G

Guest

What formula can I use to get the sum of cells in 1 column, but only if that
cell corresponds to a date in January. For example, column A is the date
column and every cell has a different date in it and I want to get the sum of
all the entries in column T in January or February etc.


The date column is setup in the format of dd/mm/yy

I've tried
=SUMPRODUCT(--(A4:A10000>0/1/7),--(A1:A10000<0/2/7),--(AP4:AP10000))

and I've tried =SUMPRODUCT((JANUARY(A4:A10000)=1)*(AP4:AP10000))

but neither has worked. Help!
 
R

Roger Govier

Hi

Try
=SUMPRODUCT(--(A4:A10000>=--"01/01/07"),--(A1:A10000<=--"28/02/07"),--(AP4:AP10000))
 
G

Guest

=SUMPRODUCT((MONTH(A4:A10000)=1)*(AP4:AP10000))

MONTH is a FUNCTION and tests if the month in A4:A10000 is 1 i.e January.

HTH
 
B

Bob Phillips

=SUMPRODUCT(--(A4:A10000>=--"2007-01-01"),--(A4:A10000<--"2007-03-01"),--(AP4:AP10000))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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