Possible VLookup IF Equation

Michael151

Board Regular
Joined
Sep 20, 2010
Messages
247
I have two lists that I'd like to compare, each with 3 columns.

First list:
Title1 Date1 Date1.1
Title2 Date2 Date2.2
Title3 Date3 Date 3.3
Title4 Date4 Date 4.4

Second List:
Title2 Date2 Date2.2
Title4 Date4 Date 4.4

What I'd like to have is a column next to the second list with a "true/false" result that says, if the title in the second list is in the first list and the two dates columns also match, return a "true" result.

I'd use a simple if(and equation, but my problem is that the titles do not match (the second list is shorter than the first list).

Any help would be most appreciated!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi Michael,

My choice would be to concatenate your lists and then you can use

=ISNUMBER(MATCH(K1,$E$1:$E$4,0))

E1:E4 holds the concatenated list from list 1 and K1:K2 holds list 2 concatenated.
 
Upvote 0
Thanks FryGirl!

Sorry but how would I concantenate the lists?

Also would ISNUMBER work for the titles in column 1? These are text, not numbers.

Thanks for your help.
 
Upvote 0
That's okay they are text, the match function is just retuning the oridinal position number.

In your test data list 2 matches list 1 in position 2 and 4. This isnumber just changes the 2 and 4 to True/False

Try entering the formula and then with and without the isnumber.

To concatenate: E1 = A1&B1&C1 and then K1 = G1&H1&I1
 
Upvote 0
Any way to do this without using the concantenate function?

It's fine if I have three separate true/false columns.

Thanks!
 
Upvote 0
it would be something like:

IF (Title somewhere in list 2) matches (Title in list 1) AND (date1 matches date1) AND (date2 matches date2), THEN True or False
 
Upvote 0
Not sure what columns you have your data in, but I can't think of any elegant solution without using the helper column.

This will work

=ISNUMBER(MATCH(F1,A1:A4,0)+MATCH(G1,B1:B4,0)+MATCH(H1,C1:C4,0))

This will combine the three columns so you will only have one true/false, but if you don't mind the three columns then just seperate the formulas.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,749
Members
452,940
Latest member
rootytrip

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