Text Join and Remove Duplicate Values

Anonymous
2024-05-07T00:38:56+00:00

Hi - I am trying to do a text join with filter to match the letters in the two spreadsheets, and return the dates, but trying to remove the duplicates.

My formula is currently:

=TEXTJOIN(",",TRUE,FILTER(TEXT(Sheet1!B:B,"mm/dd/yyyy"),Sheet1!A:A=Sheet2!A2))

Here are the two spreadsheets:

Sheet 1

Letter Date
A 12/1/2023
B 4/7/2023
C 4/8/2024
C 5/2/2023
C 4/8/2024
E 9/18/2023
E 10/1/2023
E 9/18/2023
G 3/17/2024
D 5/5/2022
F 1/1/2024

Sheet 2

Letter Dates (Lookup)
A 12/01/2023
B 04/07/2023
C 04/08/2024,05/02/2023,04/08/2024
D 05/05/2022
E 09/18/2023,10/01/2023,09/18/2023
F 01/01/2024
G 03/17/2024
Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2024-05-07T01:38:44+00:00

    =TEXTJOIN(",",TRUE,UNIQUE(FILTER(TEXT(Sheet1!B:B,"mm/dd/yyyy"),Sheet1!A:A=Sheet2!A2)))

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-05-09T16:00:36+00:00

    Perfect - thank you so much!

    0 comments No comments