Identify if a cell contains a numerical string

P

Pierre

Have a long list of identifiers:

E6A3289A
F9DB1200G5W
KRQ7356VQ
G1200GUWY87

In a helper column, we need to identify (true or false is ok) if the
value in the first column contains the string 1200.
It may appear anywhere in the cell value; it is not consistently found
after or before a given number of other characters within that cell.

Extra points if it can be done within the result fields in a pivot
table. (IOW, filter for the 1200 on the drag and drop page.)
Ideas?

Pierre
 
R

reitanospa1

Have a long list of identifiers:

E6A3289A
F9DB1200G5W
KRQ7356VQ
G1200GUWY87

In a helper column, we need to identify (true or false is ok) if the
value in the first column contains the string 1200.
It may appear anywhere in the cell value; it is not consistently found
after or before a given number of other characters within that cell.

Extra points if it can be done within the result fields in a pivot
table. (IOW, filter for the 1200 on the drag and drop page.)
Ideas?

Pierre

You could try the FIND function:
=IF(ISERROR(FIND("1200",E14)),"","Found")
 
R

Ron Rosenfeld

Have a long list of identifiers:

E6A3289A
F9DB1200G5W
KRQ7356VQ
G1200GUWY87

In a helper column, we need to identify (true or false is ok) if the
value in the first column contains the string 1200.

Assuming data is in A1:An

=COUNTIF(A1,"*1200*")>0
It may appear anywhere in the cell value; it is not consistently found
after or before a given number of other characters within that cell.

--ron
 

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