randolphoralph
Board Regular
- Joined
- Dec 24, 2008
- Messages
- 126
I have defined a name range and titled it "Data" and trying to match B2 or C2 against the values in the name range "Data"
For example...
The formula should return "Yes" when
B2 does match value in "Data", but C2 does not
B2 does not match value in "Data", but C2 does
B2 and C2 both match
The formula should return "No" when
neither B2 and C2 have matching values in "Data"
Here is what I have so far, but I am not sure how to change the formula to include the 2nd match for C2.
For example...
The formula should return "Yes" when
B2 does match value in "Data", but C2 does not
B2 does not match value in "Data", but C2 does
B2 and C2 both match
The formula should return "No" when
neither B2 and C2 have matching values in "Data"
Here is what I have so far, but I am not sure how to change the formula to include the 2nd match for C2.
Code:
=IF(ISERROR(MATCH(B2,Data,0)),"No","Yes")