I have two lists - 'List 1' and 'List 2'. List 1 is the total dataset and it contains all the entries in List 2. Is there a simple way of indicating which entries in List 1 are also included in List 2 by comparing certain criteria?
| List 1 | | | | | List 2 | | |
| Date | Type | £ | | | Date | Type | £ |
| 01/01/2020 | Apples | 1.00 | | | 01/01/2020 | Apples | 2.00 |
| 01/01/2020 | Apples | 2.00 | | | 02/01/2020 | Apples | 1.00 |
| 02/01/2020 | Pears | 3.00 | | | 03/01/2020 | Pears | 4.00 |
| 02/01/2020 | Pears | 4.00 | | | 04/01/2020 | Bananas | 2.00 |
| 02/01/2020 | Apples | 1.00 | | | | | |
| 02/01/2020 | Apples | 2.00 | | | | | |
| 02/01/2020 | Bananas | 2.00 | | | | | |
| 03/01/2020 | Pears | 3.00 | | | | | |
| 03/01/2020 | Pears | 4.00 | | | | | |
| 03/01/2020 | Apples | 1.00 | | | | | |
| 03/01/2020 | Apples | 2.00 | | | | | |
| 04/01/2020 | Bananas | 2.00 | | | | | |
I want to match the categories - Date,Type AND £ and highlight in List 1 the entries from List 2
| Desired output | | | |
| List 1 | | | Entry included in List 2 |
| Date | Type | £ | |
| 01/01/2020 | Apples | 1.00 | |
| 01/01/2020 | Apples | 2.00 | Y |
| 02/01/2020 | Pears | 3.00 | |
| 02/01/2020 | Pears | 4.00 | |
| 02/01/2020 | Apples | 1.00 | Y |
| 02/01/2020 | Apples | 2.00 | |
| 02/01/2020 | Bananas | 2.00 | |
| 03/01/2020 | Pears | 3.00 | |
| 03/01/2020 | Pears | 4.00 | Y |
| 03/01/2020 | Apples | 1.00 | |
| 03/01/2020 | Apples | 2.00 | |
| 04/01/2020 | Bananas | 2.00 | Y |
For context, actual List 1 contains 35k entries and List 2 contains 25k entries.
I've tried the 'Join' tool but it only results in the matched entries only. I still want the full data from List 1 - ie not just matched entries. I also tried just joining by a single category (eg type) but that results in a very high number of outputs (35k x 25k)
I tried the 'Union' tool but that just adds List 2 entries to the bottom of List 1. Not what I wanted.
I was thinking of using the Formula tool - ie IF List1 date = List2 date AND List1 type = List2 type AND List1 £ = List2 £ THEN "Y" ELSE "" - but Formula tools only accept single inputs. I don't really want to combine the data, just highlight the relevant entries in List 1