Flag Duplicate

Hi I have a smartsheet that is essentially setup like this:
Start Date End Date Start Time End Time Equipment
10/01/2021 10/01/2021 08:00 10:00 Shovel #1
10/01/2021 10/02/2021 07:00 11:00 Shovel #1
How can I flag for duplicate of the equipment? Essentially, if a row is entered and the same Equipment is being used during the same day and same time, what formula can I write to flag it as a duplicate?
Thanks for any help!
Answers
-
You would first need to convert your times into usable number values. HERE is a thread that should help you accomplish that.
Once you have your times converted, you would use something like this...
=IF(COUNTIFS([Start Date]:[Start Date], @cell<= [End Date]@row, [ENd Date]:[End Date], @cell>= [Start Date]@row, [Start Time Converted]:[Start Time Converted], @cell<= [End Time Converted]@row, [End Time Converted]:[ENd Time Converted], @cell>= [Start Time Converted]@row, Equipment:Equipment, @cell = Equipment@row)> 1, 1)
1 means there is an overlap somewhere.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!