Check if a value exists in 2 columns and return true/false

Daniboy7997

New Member
Joined
Sep 10, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I'm trying to make a formula that checks if a code exists in 2 existent columns, if it exists in BOTH, it returns a text, that part works perfectly, I used If, And, Match for it. But when i tried to get the other half, when it exists in only one of both (X-Or) it returns error, because of the Match function... help?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi & welcome to MrExcel.
Is this what you mean
+Fluff 1.xlsm
ABCD
1
2AHAFALSE
3BIITRUE
4CJMFALSE
5DK
6EL
7FM
8GN
9HO
10IP
11
Main
Cell Formulas
RangeFormula
D2:D4D2=AND(COUNTIFS(A:A,C2),COUNTIFS(B:B,C2))
 
Upvote 0
Hey, thank you for the hospitality,

In the meantime of posting it and seeing your reply, I managed to get it done perfectly with IfError (My office is in portuguese, but i think its IfError) because of the condition of the match function returning error, and not a false or smth like that.

Thank you very much for the reply!
 
Upvote 0
Glad you sorted it & thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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