Formula that combine names that falls into the selected dates
Hi,
I have a sheet on which employee will submit their PTO request.
The column "Team PTO" shows who else is having PTO during their requested dates within their department. Here's the formula: =JOIN(DISTINCT(COLLECT(Employee:Employee, [PTO Start Date]:[PTO Start Date], >=[PTO Start Date]@row, [PTO End Date]:[PTO End Date], <=[PTO End Date]@row, Department:Department, =Department@row, [Cancel PTO]:[Cancel PTO], <>1, Employee:Employee, <>Employee@row)), "; ")
It seems like it's not working properly. Can someone enlighten me on how to fix it?
Thanks.
Answers
-
I think I figured it out.
Here's a formula if anyone wants to build their team PTO request sheet:
=JOIN(DISTINCT(COLLECT(Employee:Employee, [PTO Start Date]:[PTO Start Date], <=[PTO End Date]@row, [PTO End Date]:[PTO End Date], >=[PTO Start Date]@row, Department:Department, =Department@row, [Row ID]:[Row ID], <>[Row ID]@row, [Cancel PTO]:[Cancel PTO], <>1, Employee:Employee, <>Employee@row)), "; ")
-
Hey @Christina09
Thanks for sharing your solution!
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!