Hi all, my name is Clare and I'm trying to learn to use Excel formula in my job and have come up with a query I can't answer.
I have been using a Countif formula to count the number of cells containing a number i.e. =COUNTIF('EVAL SHEET'!$E$2:$E$162,1)+COUNTIF('EVAL SHEET'!$G$2:$G$162,1)+COUNTIF('EVAL SHEET'!$I$2:$I$162,1)+COUNTIF('EVAL SHEET'!$K$2:$K$162,1)+COUNTIF('EVAL SHEET'!$M$2:$M$162,1)
This has been working except when I have more than one number in a cell i.e. 1, 2, 3 . How can I change the formula to allow it to recognise the 1 in the cell with more numbers in? I had managed it with a different formula eg =SUMPRODUCT(LEN('EVAL SHEET'!$E$2:$E$164)-LEN(SUBSTITUTE('EVAL SHEET'!$E$2:$E$164,1,"")))+SUMPRODUCT(LEN('EVAL SHEET'!$G$2:$G$164)-LEN(SUBSTITUTE('EVAL SHEET'!$G$2:$G$164,1,"")))+SUMPRODUCT(LEN('EVAL SHEET'!$I$2:$I$164)-LEN(SUBSTITUTE('EVAL SHEET'!$I$2:$I$164,1,"")))+SUMPRODUCT(LEN('EVAL SHEET'!$K$2:$K$164)-LEN(SUBSTITUTE('EVAL SHEET'!$K$2:$K$164,1,"")))+SUMPRODUCT(LEN('EVAL SHEET'!$M$2:$M$164)-LEN(SUBSTITUTE('EVAL SHEET'!$M$2:$M$164,1,""))) but had the problem that it wouldn't distinguish between a 1 and an 11.
Any help would be very welcome. Thanks
I have been using a Countif formula to count the number of cells containing a number i.e. =COUNTIF('EVAL SHEET'!$E$2:$E$162,1)+COUNTIF('EVAL SHEET'!$G$2:$G$162,1)+COUNTIF('EVAL SHEET'!$I$2:$I$162,1)+COUNTIF('EVAL SHEET'!$K$2:$K$162,1)+COUNTIF('EVAL SHEET'!$M$2:$M$162,1)
This has been working except when I have more than one number in a cell i.e. 1, 2, 3 . How can I change the formula to allow it to recognise the 1 in the cell with more numbers in? I had managed it with a different formula eg =SUMPRODUCT(LEN('EVAL SHEET'!$E$2:$E$164)-LEN(SUBSTITUTE('EVAL SHEET'!$E$2:$E$164,1,"")))+SUMPRODUCT(LEN('EVAL SHEET'!$G$2:$G$164)-LEN(SUBSTITUTE('EVAL SHEET'!$G$2:$G$164,1,"")))+SUMPRODUCT(LEN('EVAL SHEET'!$I$2:$I$164)-LEN(SUBSTITUTE('EVAL SHEET'!$I$2:$I$164,1,"")))+SUMPRODUCT(LEN('EVAL SHEET'!$K$2:$K$164)-LEN(SUBSTITUTE('EVAL SHEET'!$K$2:$K$164,1,"")))+SUMPRODUCT(LEN('EVAL SHEET'!$M$2:$M$164)-LEN(SUBSTITUTE('EVAL SHEET'!$M$2:$M$164,1,""))) but had the problem that it wouldn't distinguish between a 1 and an 11.
Any help would be very welcome. Thanks
Last edited: