I have an xls with a user id followed by the date of an occurrence as MM-DD-YYYY. I want to count how many years the user had an occurrence happen, not the number of occurrences in the year. For instance, user id 00062644 should return me 3, as in 3 unique years, and user id 00378886 would return me 2. Please help me with a formula for this. My assumption is that it's an array but I'm struggling to write with the year given the date format.
00062644 | 7/18/2024 |
00062644 | 7/17/2024 |
00062644 | 7/17/2023 |
00062644 | 7/17/2022 |
00062644 | 7/16/2022 |
00378886 | 1/1/2024 |
00378886 | 7/17/2024 |
00378886 | 7/17/2023 |
00378886 | 1/2/2024 |