Extracting a word from a string to turn on a formula in an If Statement using a wildcard

bearcub

Well-known Member
Joined
May 18, 2005
Messages
704
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
I would like to turn on a formula based upon a word in a string.

I have titles and I want to find certain words which will trigger a formula to populate a series of dates based upon a certain word in a string.

Is this possible to do? I thought I could do this with a wildcard in the following formula but it obviously isn't working.

In the following example I would like to have the word "account" used to trigger the "Y" results in another cell using the following if statement. Is this set up properly or is there another way to accomplish this:

Senior Account Representative
Formula (what I have now) =IF(F9="* Account","Y", "").

I would like to return "Y" but the formula is returning "".
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
How about
Excel Formula:
=IF(COUNTIFS(F9,"* account"),"Y","")
 
Upvote 0
try this:
Excel Formula:
=IF(IFERROR(FIND("Account",F9)>0,FALSE),"Y","")
 
Upvote 0
I think I am trying to create a "fuzzy" match where if the cell contains a certain word in the text string. Are fuzzy matches possible in Excel using wildcards like I am using it
 
Upvote 0
You cannot use a wild card the way you tried. Have you tried either of the suggestions?
Mine will only find " Account" at the end of the string, as you were trying to do & offthelip's will find "Account" (without a leading space) anywhere in the string.
 
Upvote 0
thank you, tried the formulas and using the find formula works great. So I guess in a fuzzy match it would be best to use the find function to find a word in a string?
 
Upvote 0
It just depends on exactly what your data is & what you are trying to do.
Find is case sensitive & will find cat in "the cat sat on the mat" & in "He won the decathlon"
 
Upvote 0
Thank you. That's right, Find is case sensitive and Search is not
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top