Countif Cell Contains A Portion Of Text

N

NDHICKEY

Any assistance is greatly appreciated. I have a column of cells whic
contain text such as: "1,6,7,23" or "15,21,22" etc.

I want to count all of the cells in the column that contain the numbe
15, the numer 16, 23, and so on. It is not possible for me to brea
out the numbers into separate cells.

I've tried the following:
=isnumber(find(9,A1)) ---- which returns true or false.

=if(isnumber(find(9,A1)) 1,0) ---- which returns 1 if there is a 9 i
cell A1 or returns 0 if it isn't.

The only problem is I need to do it for a range of cells similar to
countif(A1:A23, isnumber(find(9,"what goes here??"))).

It's really not working. I'm sure I'm going about it the wrong way.
Attached is a sample spreadsheet. Thanks in advance

Attachment filename: sample.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=60658
 
H

Harlan Grove

Any assistance is greatly appreciated. I have a column of cells which
contain text such as: "1,6,7,23" or "15,21,22" etc.

I want to count all of the cells in the column that contain the number
15, the numer 16, 23, and so on. It is not possible for me to break
out the numbers into separate cells.
...

First, file attachments are almost always unnecessary.

If there were only decimal numerals and commas and nothing else in these text
cells, and if there were always commas between numbers, and if the number sought
in these cells were N (which could be a defined name for the cell in which you
enter the number), then try

=SUMPRODUCT(--ISNUMBER(FIND(","&N&",",","&Range&",")))
 

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

Top