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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!