Excel function counif problem

F

FerVerX

I have table where in cells A there are dates, in B and C have value
"Y" or "N". So I need a function where I can count all "Y" in bot
cells, but I have to count values in range of dates where starting dat
is in G4 but ending in I4, what formula to us
 
D

Don Guillett

try using sumproduct. Range size must be equal
=sumproduct((daterng>=a1)*(daterng<a2)*(countrng="Y"))
 
G

Govind

Sorry. a small correction to my formula.The ranges should be equal to
sumproduct:

=SUMPRODUCT((A1:A100>=G4)*(A1:A100<=I4)*(B1:C100="Y"))

Regards

Govind.
Hi,

Try

=SUMPRODUCT((A1:A100>=G4)*(A1:A100<=I4)*(B1:C7="Y"))

Regards

Govind.
 

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