Link to home
Start Free TrialLog in
Avatar of Lani Vriezema
Lani Vriezema

asked on

Need help with a formula, if a field contains a word then yes, else no

If a field contains "Foreman"
then "Y"
Else "N"
Avatar of Raghavendra Hullur
Raghavendra Hullur
Flag of India image

Try this

if {your database field} = 'Foreman' then
'Y'
else
'N'


Replace {your database field} with your actual database field.
Avatar of Lani Vriezema
Lani Vriezema

ASKER

I don't think that would work because of the data:

Here is an example
Labor Group Foreman
Labor Group 3 Foreman
Labor Group 5 Foreman
ASKER CERTIFIED SOLUTION
Avatar of Raghavendra Hullur
Raghavendra Hullur
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another idea

If (InStr({YourField}, 'Foreman') Then
    'Y'
Else
    'N'