Skip to content
Advertisement

Coming up with logic to be able to add a time interval if the same date exists for the same clip#

I am trying to separate out a clip if it has the same date. For example, since “Clip Number” 1 and 2 has the same date so I am trying to make the date different by adding a 6 hour interval. I would like to add a new field that is similar to the column “New Date”

Date Clip_Number New Date
1/2/2021 1 1/2/2021 0:00
1/2/2021 1 1/2/2021 0:00
1/2/2021 2 1/2/2021 6:00
1/2/2021 2 1/2/2021 6:00
1/3/2021 3 1/3/2021 0:00
1/3/2021 3 1/3/2021 0:00

Advertisement

Answer

Gordon solution works, but only if “there are only two values with the same date”.

This solution works even in that case:

enter image description here

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement