Return "Yes" or "No" if column contains specific text

catiexcel

New Member
Joined
Apr 13, 2023
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hey! I've this spreadsheet where columns G-N are roles, and the each role is responsible for certain events and errors. Right now I'm focusing on column N - Location. This one should be the easiest, as the only errors Location is responsible for are "Coordinates". I've tried the formula:

=IFERROR(IF(MATCH($Z$9,D:D,0),"yes",),"no")

but it returns Yes for everything and I don't understand why?

FYI, $Z$9 is referring to a the word "Coordinates" in a list of the error types.

Any help appreciated!

1684847717354.png
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
=IFERROR(IF(MATCH($Z$9,D:D,0),"yes",),"no")

but it returns Yes for everything and I don't understand why?

FYI, $Z$9 is referring to a the word "Coordinates" in a list of the error types.
Because the word "Coordinates" actually does appear in column D (multiple times, in fact).
Note that you are searching ALL of column D, not just a single row.
 
Upvote 1
Solution
Maybe
Excel Formula:
=if(d2="Coordinates","Yes","No")
 
Upvote 1
Thanks guys, they both worked, I knew I was doing something wrong!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
I might ask ye about the next bit two, in relation to columns G - M. I need to return "Yes" using three criteria: Team, Event, and Error. It is looking for whether each criteria match in three other arrays. Is this possible?

This is the Issue Logs tab
1684851962530.png


This is the Admin tab where two of the arrays are that the Events and Errors should match to.
1684852121209.png
 
Upvote 0
As this is a significantly different question, it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,842
Members
449,193
Latest member
MikeVol

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