Populate calendar holidays given an agent list and the company holiday calendar sheet
Hello Dear Community,
I have a situation with a leave calendar in Smartsheet, I need to add all holidays for the agents given the office/location, I have the list of agents with the 3 digit country code and a list of holidays with the same 3 digit country code, description and date, I want to populate all dates for each agent in the final Calendar Sheet for every match, any Ideas on how to approach this?
I've been using combinations of Index/Match, Index/Collect with no luck
Thanks in advance for any support on this!
Answers
-
Where are you wanting this formula to live, and what would be the expected output?
-
Hi Paul, Thank you for your reply,
This formula should live in the project leave calendar sheet, there are 3 sheets here, 1st is an Agents List, 2nd is a Holiday Calendar List and 3rd is the actual Leave Calendar(image below) where all the request are going to live, I was able to find a solution using Index, Match, Collect and Join. here are the details:
Here is where the final formulas live:
I was able to do this following these steps:
First in list of holidays I founded all the matches for every country on the agents list:
=VLOOKUP(Country@row, {Agents Calendar Country Range}, 2, false)
In the leave calendar sheet I had to create a Row ID column and then I was able to index all the holidays from the list when there was a match in the country code by using this formula:
=INDEX(COLLECT({Holiday Calendar 2024 Date}, {Holiday Calendar 2024 Match}, "True"), [Row ID]@row)
Then next step was to bring the names from the agents list and join them in one cell per event:
=INDEX(JOIN(COLLECT({Agents Calendar List Name}, {Agents Calendar List Country Code}, [Country Code]2), ", "), 1)The Idea is to be able to see in the calendar view all the public/company holidays the agents will have around the different global offices.
Paul, let me know if you have another take on this. Thank you.
Regards.
Ciro Moreno.
-
Hi @Paul Newcome, I hope you're doing well,
I'm facing a new indexing challenge, I've been requested to add one line per each agent, instead of joining them together into a single cell, would you happen to know how can I approach this?
Thanks in advance,
Best Regards,
Ciro M.
-
Hi @Ciro Moreno,
How about using a copy rows workflow to copy rows to the destination sheet? You could set this up on the Leave Calendar sheet, triggering when rows are added or changed, and copying to the Holiday Calendar 2024 sheet. This would mean that on the Holiday Calendar 2024 sheet, you’d have multiple rows for different dates in the destination sheet - one row per agent. For more on automatically copying rows, take a look at this help article: Work with the copy rows action.
Alternatively, if you have access to it, you could use DataMesh to pull in the required data to your Holiday Calendar 2024 sheet.
Hope that helps!
Georgie
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.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!