Sumif

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I add the numbers of cells in column B only if they meet the criteria
of "Monday" from column A and "Yes" from column B?

Thanks for any help!
 
How can you add numbers from B where B = Yes.

Assuming you meant C

=SUMPRODUCT(--(A1:A1000="Monday"),--(B1:B1000="Yes"),C1:C1000)

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
I apologize for being unclear.

If I have various days in column A and want to know how many "yes" responses
I have in column B to preset criteria, how would I do that. It has nothing
to do with column C.

Instead of adding numbers, I merely want to count how many cells contain the
Yes for the day. Say, how many Yes's were there for Monday? How many for
Tuesday? Etc.

Thanks again for your time.
 
It was the add that threw me :-)

Just use
=SUMPRODUCT(--(A1:A1000="Monday"),--(B1:B1000="Yes"))
--

HTH

RP
(remove nothere from the email address if mailing direct)
 
And since you're looking for a total for each day, how about entering
Monday thru Friday in Column C,
From C1 to C5,
And then enter Bob's formula in D1 with these revisions:

=SUMPRODUCT(--($A$1:$A$1000=C1),--($B$1:$B$1000="Yes"))

Then drag down to copy to D5, to get each individual day's total.
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

It was the add that threw me :-)

Just use
=SUMPRODUCT(--(A1:A1000="Monday"),--(B1:B1000="Yes"))
--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top