If Match formula

TelecomMI

New Member
Joined
Jan 23, 2017
Messages
6
I am looking to have the function look for multiple terms inside of cell to return a "X" as a check if there is a match. The formula only works on the first part of the formula. So I tried working in AND. It then only gives an NA

=IF(AND(MATCH("*City of Grand Rapids*",R6,0),IF(MATCH("*City of Grandville*",R6,0),"X")))

There is 3 more pieces of criteria to add in the search, but I cannot seem to get the answer from the first two in the function.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Those key words are the reason for the formula. I need it to find these to verify them on the report.
 
Upvote 0
Try this...
A​
B​
1​
aabbccddeex
2​
aabbffddee
B1=IF(ISERROR(AND(FIND("bb",A1),FIND("cc",A1))),"","x")
copied down
 
Upvote 0
Quick question - will those words always be in that order?

If so, then...
=IF(ISERROR(FIND("bb"&"cc",A1)),"","x")
 
Upvote 0
I should of stated that. The formula will be copied down through column p with the correlating number in r. The city will only be one city occurring in column r. Ex r6 city of Grand Rapids, r23 city of Grandville, and so on.
 
Upvote 0
I think you need to provide a range of sample data, and show what you expect.

Did you try my suggestion from post #4?
adjusted to your last post...
P1=IF(ISERROR(AND(FIND("Grand Rapids",R1),FIND("Grandville",R1))),"","x")
 
Upvote 0
This formula seems to return X for everything and not whether there is a matching portion of the formula.
 
Upvote 0
I should of stated that. The formula will be copied down through column p with the correlating number in r. The city will only be one city occurring in column r. Ex r6 city of Grand Rapids, r23 city of Grandville, and so on.

Care to post what you have in R6?
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,942
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