Steve Saunders
New Member
- Joined
- Jun 18, 2023
- Messages
- 12
- Office Version
- 365
- Platform
- Windows
Hi all,
I have over 600 rows of user data and am looking for a way to determine the first distinct date range for each user. In the example sheet, Sally has three dates all of which are the same, but I only want the first to be marked as distinct. Eduarado has only one so this is distinct, and Jimmy has two dates and the first is to be marked as distinct. I want to determine this for each row and user with a “Y/N" result so I can then perform further calculations.
I can get a listing of distinct values from the dates in column B and C, but can't use the username as an additional criterion. Does anyone have suggestions as to where I could look?
Regards,
Steve
I have over 600 rows of user data and am looking for a way to determine the first distinct date range for each user. In the example sheet, Sally has three dates all of which are the same, but I only want the first to be marked as distinct. Eduarado has only one so this is distinct, and Jimmy has two dates and the first is to be marked as distinct. I want to determine this for each row and user with a “Y/N" result so I can then perform further calculations.
I can get a listing of distinct values from the dates in column B and C, but can't use the username as an additional criterion. Does anyone have suggestions as to where I could look?
Regards,
Steve
Sample.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | User | Start | Finish | Is distinct date? | ||
2 | Sally | 13/08/2023 | 14/02/2023 | Y | ||
3 | Eduarado | 1/01/2022 | 18/10/2022 | Y | ||
4 | Jimmy | 2/02/2023 | 8/08/2023 | Y | ||
5 | Sally | 13/08/2023 | 14/02/2023 | N | ||
6 | Sally | 13/08/2023 | 14/02/2023 | N | ||
7 | Jimmy | 2/02/2023 | 8/08/2023 | N | ||
Sheet1 |