G Guest Mar 28, 2007 #1 Can I write a formula in which "yes" equals 1 and "no" equals 0. So when completed I have a sum of "yeses".
Can I write a formula in which "yes" equals 1 and "no" equals 0. So when completed I have a sum of "yeses".
G Guest Mar 28, 2007 #2 =--(I7="yes") James said: Try using an IF =IF(I7="yes","1","0") I J 7 yes 1 8 no 0 9 yes 1 Click to expand...
=--(I7="yes") James said: Try using an IF =IF(I7="yes","1","0") I J 7 yes 1 8 no 0 9 yes 1 Click to expand...
G Guest Mar 28, 2007 #3 How about using the COUNTIF function? =COUNTIF(A1:A100,"yes") This would count the number of times that "yes" appears in the range A1 thru A100. HTH, Elkar
How about using the COUNTIF function? =COUNTIF(A1:A100,"yes") This would count the number of times that "yes" appears in the range A1 thru A100. HTH, Elkar
G Guest Mar 28, 2007 #4 This will give you a 1 if A1 is Yes, and 0 otherwise. =IF(A1="Yes", 1, 0) This will give you a count of cells in Column A where the cell value is equal to "Yes" =COUNTIF(A:A,"Yes")
This will give you a 1 if A1 is Yes, and 0 otherwise. =IF(A1="Yes", 1, 0) This will give you a count of cells in Column A where the cell value is equal to "Yes" =COUNTIF(A:A,"Yes")