multi variable vlookup if statement

ajrogers33

New Member
Joined
Oct 10, 2016
Messages
1
[TABLE="width: 798"]
<tbody>[TR]
[TD]Calendar Code[/TD]
[TD]Country[/TD]
[TD]Person[/TD]
[TD]Date[/TD]
[TD]Alex[/TD]
[TD]Mark[/TD]
[TD]John[/TD]
[TD]Mark and John, No Alex[/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD]Antigua and Barbuda[/TD]
[TD]John[/TD]
[TD]10/01/2017[/TD]
[TD][/TD]
[TD][/TD]
[TD]J[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD]Antigua and Barbuda[/TD]
[TD]Mark[/TD]
[TD]05/01/2017[/TD]
[TD][/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD]Antigua and Barbuda[/TD]
[TD]Alex[/TD]
[TD]04/14/2017[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABB[/TD]
[TD]Antigua and Barbuda[/TD]
[TD]John[/TD]
[TD]05/01/2017[/TD]
[TD][/TD]
[TD][/TD]
[TD]J[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]



I need to populate the 'Mark and John, No Alex' column with a 'YES' anytime that column A (calendar code) and column D (date) match, and shows up twice, one time with the Mark column populated with an 'M' and one time with the John column populated with a 'J'
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
=IF(SUMPRODUCT(--(A4=$A$2:$A$5)*(D4=$D$2:$D$5)*(("M"=$F$2:$F$5)+("J"=$G$2:$G$5)))>1,"Yes","")
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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