B
Ben Ritchie
Is there any way that I can write a formula to return
TRUE if a text entry in an adjacent cell matches exactly
any one of my entries into a 'dictionary' of allowed
items.
Here is an example of some of the items in my item
dictionary,
"Forks"
"Spoons"
"Plates"
"Frying pans"
"Knives"
These would not be allowed (would like to get a result of
FALSE if they were entered in),
"Fork"
"spoon"
"pan"
"Frying Forks"
"Frying Pans"
"Giraffe"
Therefore the formula should be case sensitive and non-
wildcard. Now in reality my dictionary is a list in one
column on sheet 1 in the workbook and has an excess of
100 entries so it needs to be referenced in some way
(e.g. $A$1:$A$103) rather than writing out each of the
allowed phrases separately in the formula (this would not
fit into the formula entry box). The cells I am checking
(to see if the text in them complies exactly with any
entry in the dictionary) are in column C on the active
sheet (sheet 2) and so I would start by applying the
formula to C1 and then copying it down the whole column.
So far I have tried putting in the following formulae
into D1,
=FIND(Sheet1!$A$1:$A$103,C1)
I thought FIND would be good to use since it doesn't
allow wildcard and is case-sensitive.
=ISERR(SEARCH(Sheet1!$A$1:$A$103,C1))
I think I really want a formula that would do something
like this,
=FIND(Sheet1!$A$1 or Sheet1!$A$2 or Sheet1!$A$3 or Sheet1!
$A$4 or Sheet1!$A$5 or Sheet1!$A$6.,C1))
Generally they seem to either not work or only search for
the first entry in the dictionary (which is cell A1 on
Sheet 1).
Can anyone help?
TRUE if a text entry in an adjacent cell matches exactly
any one of my entries into a 'dictionary' of allowed
items.
Here is an example of some of the items in my item
dictionary,
"Forks"
"Spoons"
"Plates"
"Frying pans"
"Knives"
These would not be allowed (would like to get a result of
FALSE if they were entered in),
"Fork"
"spoon"
"pan"
"Frying Forks"
"Frying Pans"
"Giraffe"
Therefore the formula should be case sensitive and non-
wildcard. Now in reality my dictionary is a list in one
column on sheet 1 in the workbook and has an excess of
100 entries so it needs to be referenced in some way
(e.g. $A$1:$A$103) rather than writing out each of the
allowed phrases separately in the formula (this would not
fit into the formula entry box). The cells I am checking
(to see if the text in them complies exactly with any
entry in the dictionary) are in column C on the active
sheet (sheet 2) and so I would start by applying the
formula to C1 and then copying it down the whole column.
So far I have tried putting in the following formulae
into D1,
=FIND(Sheet1!$A$1:$A$103,C1)
I thought FIND would be good to use since it doesn't
allow wildcard and is case-sensitive.
=ISERR(SEARCH(Sheet1!$A$1:$A$103,C1))
I think I really want a formula that would do something
like this,
=FIND(Sheet1!$A$1 or Sheet1!$A$2 or Sheet1!$A$3 or Sheet1!
$A$4 or Sheet1!$A$5 or Sheet1!$A$6.,C1))
Generally they seem to either not work or only search for
the first entry in the dictionary (which is cell A1 on
Sheet 1).
Can anyone help?