sumproduct or sumif formula help

F

ferde

I wonder if someone could tell me which formula to use to do the following:

A1= the sum of the yes responses from each sales rep in a quarter (Jan-Mar)

Month SalesRep Response
Jan John No
Feb John Yes
Mar Bill Yes
Apr John No

Answer = 1 yes response for JOHN in the first quarter (jan-Mar)

Answer = 1 yes response for Bill in the first quarter

I am using name ranges .i.e Month SalesRep Response

Thank you in advance for any help you can provide
Ferde
 
B

Bob Phillips

=SUMPRODUCT((ISNUMBER(MATCH(B1:B10,{"Jan","Feb","Mar"},0)))*(C1:C10="John")*(D1:D10="Yes"))

--
HTH

Bob

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

ferde

THANK YOU IT WORKS GREAT

Bob Phillips said:
=SUMPRODUCT((ISNUMBER(MATCH(B1:B10,{"Jan","Feb","Mar"},0)))*(C1:C10="John")*(D1:D10="Yes"))

--
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