Search within all multi-selected fields for duplicates
Hi,
I am wondering if there is a way to detect when there are duplicates of a multi-selected item in another row.
My formula so far: =IF(OR(ISBLANK(Checkin@row), ISBLANK(Checkout@row)), "", IF(COUNTIFS(Checkout:Checkout, >=(Checkin@row + 1), Checkin:Checkin, <=(Checkout@row - 1), SiteNumber:SiteNumber, SiteNumber@row) - 1 > 0, "Double Booked"))
I am basically working towards a booking system. I want the Formula field to populate "Double Booked" when two booking's dates overlap, AND share a "SiteNumber". I have figured out the overlapping dates part, and the SiteNumber part works when the filed type is text/number, but that limits me to only allow one site number in the SiteNumber field.
Thanks!
Answers
-
See below a discussion where I worked a similar need (substitute the TASK ID field for your date fields instead).
Let me know if this works for you, feel free to comment if you need more help with it.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 429 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!