Search anywhere in cell

D

Deborah Mowry

I have a cell that contains reference numbers. Most are 1 but some contain
up to 3 entries (it was not created properly a long time ago). However; I
wish to query where there is a particular reference and I only get it IF it
is the first one entered.
Specifically -
Possible entries are in a few records would be:
PO18
PO12, PO14, PO18
PO14
PO02, PO18
PO18, PO09

I queried for *"PO18"* and it would only return the first and last record,
not the second and fourth!
If I wanted a last name containing Donald I would have typed *Donald* and
got MacDonald and Donaldson, therefore I am not understanding what happened
here.
Deborah
 
F

Fredg

As criteria for the field:
Like "*PO18*"

A better way is to NOT hard code the criteria.

Like "*" & [Look For] & "*"

You will be prompted to enter the words.
 
D

Deborah Mowry

I would never have thought to try that - thank you.
Do you have an explanation for why it would not search as a query? Or is
that too hard to explain?

Many thanks
Deborah


Fredg said:
As criteria for the field:
Like "*PO18*"

A better way is to NOT hard code the criteria.

Like "*" & [Look For] & "*"

You will be prompted to enter the words.
--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.


Deborah Mowry said:
I have a cell that contains reference numbers. Most are 1 but some contain
up to 3 entries (it was not created properly a long time ago). However; I
wish to query where there is a particular reference and I only get it IF it
is the first one entered.
Specifically -
Possible entries are in a few records would be:
PO18
PO12, PO14, PO18
PO14
PO02, PO18
PO18, PO09

I queried for *"PO18"* and it would only return the first and last record,
not the second and fourth!
If I wanted a last name containing Donald I would have typed *Donald* and
got MacDonald and Donaldson, therefore I am not understanding what happened
here.
Deborah
 

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