Sum(if not working

B

Beverly C

=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?
 
D

Dave F

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

Bernie Deitrick

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
 
M

Mike

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