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
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!