Sum(if not working

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

Guest

=SUM(IF(C2:C500="Bell",IF(F2:F500="Yes",1,0)))


I have a spreadsheet that housing a list of providers and a list survey
questions. Columns F2 - F500 can be every "Yes" to "No". I tried to pick
out all the "Yes" answers for this provider and keeps getting a "1".

What am I doing wrong?
 
=SUMPRODUCT(--(C2:C500="Bell"),--(F2:F500="Yes"))

This will return the count of records for which C2:C500 = "Bell" AND F2:F500
= "Yes" which is what I think you're trying to do.

Dave
 
Beverly,

The formula you have will work if you array enter it (enter using Ctrl-Shift-Enter).

For a regular (non-array-entered) formula, try

=SUMPRODUCT((C2:C500="Bell")*(F2:F500="Yes"))

HTH,
Bernie
MS Excel MVP
 
Entered as and array formula (CTRL + Shift + Enter) you are counting the
number of times Bell and Yes appear in the same row. Are you trying to do
something different?
 

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