WHETHER TO USE COUNTIF, SUMIF or SUMPRODUCT

D

dblevins

I have 2 columns: names in column F and dates in column G.

COL A COL B
JET 4/1
JET 4/1
JET 4/1
FRED 4/1

I am trying to calculate the number of times a person completed a project on
April 1, so the function needs both their initials and a date filled in, in
order to be counted as one.

I've tried several countif, sumif and sum product funtions and unable to get
any to work.
ie.
=SUMPRODUCT((F2:F1308="JET")*(G2:G1308="4/1"))
=COUNTIF(F2:F1308,"=JET")-COUNTIF(G2:G1308,"=1-Apr")
=SUM(IF(F2:F1308="JET",IF(G2:G1308="April 1, 2009",1,0)))

JET actually completed 3 projects on 4/1, but I always get a zero total. I
tried changing the date format, but that didn't work either.
Any help is appreciated.

Cheers
dblevins
 
F

Fred Smith

Try it this way:

=sumproduct(--(f2:f5="JET"),--(g2:g5=date(2009,4,1)))

Regards,
Fred
 

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