I have 4 columns with 0, 1 answers. I need to count the number of rows that countain at least one 1.
S Scott Nov 10, 2005 #1 I have 4 columns with 0, 1 answers. I need to count the number of rows that countain at least one 1.
V vezerid Nov 10, 2005 #2 Scott, use an extra column to sum the answers (e.g. in K2 =SUM(F2:I2) and copy down). Then use =COUNTIF(K:K, ">1"). HTH Kostis Vezerides
Scott, use an extra column to sum the answers (e.g. in K2 =SUM(F2:I2) and copy down). Then use =COUNTIF(K:K, ">1"). HTH Kostis Vezerides
G Gary''s Student Nov 10, 2005 #3 Let's assume that your data is in cols A-D. In col E enter: =MIN(A1+B1+C1+D1,1) and copy down Then just sum column E
Let's assume that your data is in cols A-D. In col E enter: =MIN(A1+B1+C1+D1,1) and copy down Then just sum column E
S Scott Nov 10, 2005 #4 It there a way to do this without effecting the data table? I want to preserve the asthetic valur of the table including only answers to survey questions.
It there a way to do this without effecting the data table? I want to preserve the asthetic valur of the table including only answers to survey questions.
D Dana DeLouis Nov 10, 2005 #5 There's probably a better way, but here's an array formula: =SUM(SIGN(A1:A10+B1:B10+C1:C10+D110)) Note that any text will cause an error.
There's probably a better way, but here's an array formula: =SUM(SIGN(A1:A10+B1:B10+C1:C10+D110)) Note that any text will cause an error.