IF with more conditions

JimmyBambo

New Member
Joined
Dec 8, 2018
Messages
30
Capture.png


So this is the issue:
If Name (column A), Surname (column B) and Mark (column C) match with list of Name (Column E); Surname (Column F) and Place (Column G), then answer is YES, otherwise NO.
I tried with =IF(COUNTIFS($E$2:$E$5;A2;$F$2:$F$5;B2;$G$2:$G$4;C2);"YES";"NO"), but didnt get correct results as it looking only on first search cell, not on list.
Thank you in advance :)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
See if this does what you want. I have assumed that all full name combinations are unique.

If is not what you want, please give specifics of where it is wrong and how you would do this manually.

Excel Workbook
ABCDEFGH
1NameSurnameMarkNameSurnamePlace
2Name 1Surname 154Name 3Surname 31Yes
3Name 2Surname 263Name 9Surname 22Yes
4Name 3Surname 389Name 4Surname 48No
5Name 4Surname 438Name 1Surname 65No
6Name 5Surname 550Name 3Surname 14Yes
7Name 1Surname 660
8Name 3Surname 160
9Name 4Surname 845
10Name 9Surname 288
Check Place
 
Upvote 0
Looks like three separate countif formulas to me:

=IF(AND(COUNTIF($E$2:$E$5;A2);COUNTIF($F$2:$F$5;B2);COUNTIF($G$2:$G$4;C2));"YES";"NO")
 
Upvote 0
Also, thank you mr. Peter_SSs for your effort.

You're welcome but I clearly didn't help & I don't know what happened here - when I reviewed the question, which was well after you posted it, no image was visible in post 1 so my guess about the data looks pretty silly now. :unsure:
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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